Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'subject:Python': 0.06; 'subject:code': 0.07; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'suggest': 0.14; 'language.': 0.14; "'0'": 0.16; 'blocks': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:between': 0.16; 'language': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'print': 0.22; 'header:User-Agent:1': 0.23; 'format,': 0.24; 'lets': 0.24; 'excel': 0.26; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'character': 0.29; 'code': 0.31; 'font': 0.31; 'subject:data': 0.36; 'url:org': 0.36; 'should': 0.36; 'example,': 0.37; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; '2nd': 0.60; 'new': 0.61; 'times': 0.62; 'our': 0.64; 'different': 0.65; 'charset:windows-1252': 0.65; 'here': 0.66; 'sample': 0.67; '1st': 0.74; 'arial,': 0.74; '**no': 0.84; 'developed.': 0.84; 'roman,': 0.84; 'sheet': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Python code to distinguish between data having, 2 different formats, in a given cell(MS Excel). Date: Sat, 23 Aug 2014 20:15:57 +0100 References: <37b3f703-a781-489f-b086-26b9c80df282@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-92-24-212-253.ppp.as43234.net User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.0 In-Reply-To: <37b3f703-a781-489f-b086-26b9c80df282@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1408821375 news.xs4all.nl 2831 [2001:888:2000:d::a6]:34047 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:76890 On 23/08/2014 19:56, Ed Joz wrote: > I got an excel sheet having,2 blocks of data in 2 different formats, in any given cell. > > Lets take cell A1 for example, 1st block has font = Arial, character size =10 2nd block has font = Times New Roman, character size = 16 OR **no data** > > sample: "abcd123 > > PQRS456" > > A python code need to be developed. It should check every cell, and print the data whose, font = Times New Roman & character size = 16 .If the cell is not having any data in that format, '0' should be printed.The data can be printed into a notepad. > > Please suggest a sample python code. > Start here http://www.python-excel.org/ -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence