Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default If logical function with text and numbers

Hi,

I have a row with dates. Every three cells are a date in months, which excel
recognizes as a date, but every fourth cell is the quarterly date, which
excel recognizes as text.

I would like to write an if function that can discriminate between the date
values and the text values. In words, what I would like it to do is this:
"if a cell is text, return a sum, if not, return nothing".

Any help would be greatly appreciated.

Thanks!
--
Hugo
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default If logical function with text and numbers

One way, something like this in say, B2, copied down:
=IF(ISTEXT(A2),"",yourformula)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"Hugo" wrote:
I have a row with dates. Every three cells are a date in months, which excel
recognizes as a date, but every fourth cell is the quarterly date, which
excel recognizes as text.

I would like to write an if function that can discriminate between the date
values and the text values. In words, what I would like it to do is this:
"if a cell is text, return a sum, if not, return nothing".

Any help would be greatly appreciated.

Thanks!
--
Hugo

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default If logical function with text and numbers

Should be the other way around, sorry:
=IF(ISTEXT(A2),yourformula,"")
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default If logical function with text and numbers

Would there be a way to have the cells, which don't fit the logical
function's criteria to not have any formula in these at all? Ideally, I
would like only the cells that fit the criteria of the header being text to
have my formula, whereas the cells that do not meet this criteria should be
for inputting data points in a time series.

Thanks for everyone's help!
--
Hugo


"Max" wrote:

Should be the other way around, sorry:
=IF(ISTEXT(A2),yourformula,"")
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default If logical function with text and numbers

Suggest you try a fresh posting in .programming for your new query
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"Hugo" wrote in message
...
Would there be a way to have the cells, which don't fit the logical
function's criteria to not have any formula in these at all? Ideally, I
would like only the cells that fit the criteria of the header being text
to
have my formula, whereas the cells that do not meet this criteria should
be
for inputting data points in a time series.





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,104
Default If logical function with text and numbers

I started with a date in A1 and used this formula in another cell
=IF(ISERROR(A1+1),"A1 is text","A1 is a number")
It returned "A1 is number"
When I overtyped the date with text it returned "A1 is text"
Remember that dates in Excel are actually numbers being displayed is a
specific way
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email


"Hugo" wrote in message
...
Hi,

I have a row with dates. Every three cells are a date in months, which
excel
recognizes as a date, but every fourth cell is the quarterly date, which
excel recognizes as text.

I would like to write an if function that can discriminate between the
date
values and the text values. In words, what I would like it to do is this:
"if a cell is text, return a sum, if not, return nothing".

Any help would be greatly appreciated.

Thanks!
--
Hugo



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 120
Default If logical function with text and numbers

Hi

Not sure how do you return the SUM if your data are text?

try this as to your requirement
=IF(ISNUMBER(A8),"",Your Formula)

--
Hope this is helpful

Pls click the Yes button below if this post provide answer you have asked

Thank You

cheers, francis

Am not a greek but an ordinary user trying to assist another



"Hugo" wrote:

Hi,

I have a row with dates. Every three cells are a date in months, which excel
recognizes as a date, but every fourth cell is the quarterly date, which
excel recognizes as text.

I would like to write an if function that can discriminate between the date
values and the text values. In words, what I would like it to do is this:
"if a cell is text, return a sum, if not, return nothing".

Any help would be greatly appreciated.

Thanks!
--
Hugo

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default If logical function with text and numbers

I presume this is a follow up to your previous posting in the programming
newsgroup. If so, then you can do something like this...

=IF(LEFT(E2)="Q",<<YourSumFormula,"")

--
Rick (MVP - Excel)


"Hugo" wrote in message
...
Hi,

I have a row with dates. Every three cells are a date in months, which
excel
recognizes as a date, but every fourth cell is the quarterly date, which
excel recognizes as text.

I would like to write an if function that can discriminate between the
date
values and the text values. In words, what I would like it to do is this:
"if a cell is text, return a sum, if not, return nothing".

Any help would be greatly appreciated.

Thanks!
--
Hugo


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help!!! - logical function for someone not very logical ECH123 Excel Worksheet Functions 3 May 11th 09 04:14 PM
How to auto text colour change to green if logical function true? Al Excel Discussion (Misc queries) 1 December 26th 07 12:05 AM
does an IF function only look up numbers & not text? CAPGirl Excel Discussion (Misc queries) 2 October 26th 06 08:20 PM
logical test, array, text and numbers Dan M. Excel Worksheet Functions 1 April 25th 06 08:56 AM
Create a function to return text if two logical functions are true janeyt Excel Worksheet Functions 2 March 19th 05 08:49 PM


All times are GMT +1. The time now is 04:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"