Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jan
 
Posts: n/a
Default Formula help needed

Excel 97.

Column/Row B2 = text value
Column/Row O2 = Date value

I need a formula to evaluate as follows:

If B2 & O2 contain no value return "", if B2 contains a value & O2 is null
return 0 (zero), otherwise calculate today()-O2.

I have been trying many variations of formulas to return the above results
without any success. Can anyone advise on the correct formula to enter?

TIA
Jan
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Formula help needed

Hi!

O2 is null


Null means different things to different people!

Does null mean an empty cell (no formulas, nothing), a number 0, or a blank
cell (formula blank: "") ?

Try this:

=IF(COUNTA(B2,O2)=0,"",IF(AND(B2<"",O2=""),0,TODA Y()-O2))

Biff

"Jan" wrote in message
...
Excel 97.

Column/Row B2 = text value
Column/Row O2 = Date value

I need a formula to evaluate as follows:

If B2 & O2 contain no value return "", if B2 contains a value & O2 is null
return 0 (zero), otherwise calculate today()-O2.

I have been trying many variations of formulas to return the above results
without any success. Can anyone advise on the correct formula to enter?

TIA
Jan



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jan
 
Posts: n/a
Default Formula help needed

Hi Biff,


Thank you...that appears to work as needed.

Jan

"Jan" wrote:


Excel 97.

Column/Row B2 = text value
Column/Row O2 = Date value

I need a formula to evaluate as follows:

If B2 & O2 contain no value return "", if B2 contains a value & O2 is null
return 0 (zero), otherwise calculate today()-O2.

I have been trying many variations of formulas to return the above results
without any success. Can anyone advise on the correct formula to enter?

TIA
Jan

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Formula help needed

You're welocme. Thanks for the feedback!

Biff

"Jan" wrote in message
...
Hi Biff,


Thank you...that appears to work as needed.

Jan

"Jan" wrote:


Excel 97.

Column/Row B2 = text value
Column/Row O2 = Date value

I need a formula to evaluate as follows:

If B2 & O2 contain no value return "", if B2 contains a value & O2 is
null
return 0 (zero), otherwise calculate today()-O2.

I have been trying many variations of formulas to return the above
results
without any success. Can anyone advise on the correct formula to enter?

TIA
Jan



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
continuous sum formula needed NN Excel Discussion (Misc queries) 2 November 4th 05 06:49 PM
Formula Help Needed BDY Excel Discussion (Misc queries) 3 October 26th 05 05:35 PM
More Help Needed with Count formula Greegan Excel Worksheet Functions 4 July 31st 05 06:31 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Help! Formula needed. Samrasr Excel Discussion (Misc queries) 1 January 26th 05 12:01 PM


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

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

About Us

"It's about Microsoft Excel"