ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   I need a formula (https://www.excelbanter.com/excel-discussion-misc-queries/67002-i-need-formula.html)

jimar

I need a formula
 
I have 3 columns. I need to put a date into either column 1 or column 2.
There will never be a date in both columns on the same row. In column 3 I
would like it to have a forumula that will allow for "letter" to be displayed
if there is a date in Col 1, "Follow up" if there is a date in column 2 and
"No Reply" if there is no date in col 1 or 2. Can anyone help?

Thanks

[email protected]

I need a formula
 
"jimar" wrote:
There will never be a date in both columns on the same row.
In column 3 I would like it to have a forumula that will allow
for "letter" to be displayed if there is a date in Col 1, "Follow
up" if there is a date in column 2 and "No Reply" if there is
no date in col 1 or 2. Can anyone help?


=IF(A1<"", "Letter", IF(B1<"", "Follow up", "No reply"))

Note that that does not test specifically for a date, but simply
whether or not the cells are empty. Do you truly need to
distinguish between a cell with a date versus a cell with a
different value or text?

daddylonglegs

I need a formula
 

Assuming your columns are A & B then in C2

=IF(ISNUMBER(A2),"Letter",IF(ISNUMBER(B2),"Follow up","No reply"))


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=504377


jimar

I need a formula
 
Thanks. This works perfectly.

" wrote:

"jimar" wrote:
There will never be a date in both columns on the same row.
In column 3 I would like it to have a forumula that will allow
for "letter" to be displayed if there is a date in Col 1, "Follow
up" if there is a date in column 2 and "No Reply" if there is
no date in col 1 or 2. Can anyone help?


=IF(A1<"", "Letter", IF(B1<"", "Follow up", "No reply"))

Note that that does not test specifically for a date, but simply
whether or not the cells are empty. Do you truly need to
distinguish between a cell with a date versus a cell with a
different value or text?



All times are GMT +1. The time now is 03:05 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com