ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   multiple IF formulas (https://www.excelbanter.com/excel-worksheet-functions/194598-multiple-if-formulas.html)

jaydee

multiple IF formulas
 
In A1, I have a date linked from another file worksheet. I used the If (is
blank) formula so no data appears unless there is a date to link from the
other worksheet.

In A2, I also have a date linked from another file worksheet. I also used
the If (is blank) formula so no data appears unless there is a date to link
from the other file worksheet.

I am trying to write a formula for Cell A3 that will return a given phrase
(i.e. past due) if the date in cell A2 is greater than the date A1. AND,
return a blank cell for A3 if there are no dates in cells A1 or A2.



John C[_2_]

multiple IF formulas
 
=IF(OR(A1="",A2=""),"",IF(A2A1,"PAST DUE",""))

Hope that helps.
--
John C


"JayDee" wrote:

In A1, I have a date linked from another file worksheet. I used the If (is
blank) formula so no data appears unless there is a date to link from the
other worksheet.

In A2, I also have a date linked from another file worksheet. I also used
the If (is blank) formula so no data appears unless there is a date to link
from the other file worksheet.

I am trying to write a formula for Cell A3 that will return a given phrase
(i.e. past due) if the date in cell A2 is greater than the date A1. AND,
return a blank cell for A3 if there are no dates in cells A1 or A2.



Gary Brown[_4_]

multiple IF formulas
 
=IF(ISBLANK(A1&A2),"",IF(A2A1,"Past Due",""))
--
Hope this helps.
If this post was helpfull, please remember to click on the ''''YES''''
button at the bottom of the screen.
Thanks,
Gary Brown


"JayDee" wrote:

In A1, I have a date linked from another file worksheet. I used the If (is
blank) formula so no data appears unless there is a date to link from the
other worksheet.

In A2, I also have a date linked from another file worksheet. I also used
the If (is blank) formula so no data appears unless there is a date to link
from the other file worksheet.

I am trying to write a formula for Cell A3 that will return a given phrase
(i.e. past due) if the date in cell A2 is greater than the date A1. AND,
return a blank cell for A3 if there are no dates in cells A1 or A2.



Teethless mama

multiple IF formulas
 
Your formula will fail if there are text value example: a1=a, a2=b

=IF(OR(A1="",A2=""),"",IF(A2A1,"PAST DUE",""))



"John C" wrote:


=IF(OR(A1="",A2=""),"",IF(A2A1,"PAST DUE",""))

Hope that helps.
--
John C


"JayDee" wrote:

In A1, I have a date linked from another file worksheet. I used the If (is
blank) formula so no data appears unless there is a date to link from the
other worksheet.

In A2, I also have a date linked from another file worksheet. I also used
the If (is blank) formula so no data appears unless there is a date to link
from the other file worksheet.

I am trying to write a formula for Cell A3 that will return a given phrase
(i.e. past due) if the date in cell A2 is greater than the date A1. AND,
return a blank cell for A3 if there are no dates in cells A1 or A2.



Teethless mama

multiple IF formulas
 
Try this:

=IF(AND(COUNT(A1:A2)=2,A2A1),"past due","")


"JayDee" wrote:

In A1, I have a date linked from another file worksheet. I used the If (is
blank) formula so no data appears unless there is a date to link from the
other worksheet.

In A2, I also have a date linked from another file worksheet. I also used
the If (is blank) formula so no data appears unless there is a date to link
from the other file worksheet.

I am trying to write a formula for Cell A3 that will return a given phrase
(i.e. past due) if the date in cell A2 is greater than the date A1. AND,
return a blank cell for A3 if there are no dates in cells A1 or A2.



Teethless mama

multiple IF formulas
 
Your formula fail. It returns past Due instead of blank. if A1=<blank,
A2=date value

=IF(ISBLANK(A1&A2),"",IF(A2A1,"Past Due",""))



"Gary Brown" wrote:

=IF(ISBLANK(A1&A2),"",IF(A2A1,"Past Due",""))
--
Hope this helps.
If this post was helpfull, please remember to click on the ''''YES''''
button at the bottom of the screen.
Thanks,
Gary Brown


"JayDee" wrote:

In A1, I have a date linked from another file worksheet. I used the If (is
blank) formula so no data appears unless there is a date to link from the
other worksheet.

In A2, I also have a date linked from another file worksheet. I also used
the If (is blank) formula so no data appears unless there is a date to link
from the other file worksheet.

I am trying to write a formula for Cell A3 that will return a given phrase
(i.e. past due) if the date in cell A2 is greater than the date A1. AND,
return a blank cell for A3 if there are no dates in cells A1 or A2.



John C[_2_]

multiple IF formulas
 
Nice of you to notice, of course, you didn't notice that cells A1 and A2 are
pulling in dates from another sheet, and therefore, other values do not
populate in cells A1 & A2.
--
John C


"Teethless mama" wrote:

Your formula will fail if there are text value example: a1=a, a2=b

=IF(OR(A1="",A2=""),"",IF(A2A1,"PAST DUE",""))



"John C" wrote:


=IF(OR(A1="",A2=""),"",IF(A2A1,"PAST DUE",""))

Hope that helps.
--
John C


"JayDee" wrote:

In A1, I have a date linked from another file worksheet. I used the If (is
blank) formula so no data appears unless there is a date to link from the
other worksheet.

In A2, I also have a date linked from another file worksheet. I also used
the If (is blank) formula so no data appears unless there is a date to link
from the other file worksheet.

I am trying to write a formula for Cell A3 that will return a given phrase
(i.e. past due) if the date in cell A2 is greater than the date A1. AND,
return a blank cell for A3 if there are no dates in cells A1 or A2.



Gary Brown[_4_]

multiple IF formulas
 
Understood Mama.
This is because there can NEVER be a Past due date if a DUE BY date is
unknown. This signifies a data entry error.
--
Hope this helps.
If this post was helpfull, please remember to click on the ''''YES''''
button at the bottom of the screen.
Thanks,
Gary Brown


"Teethless mama" wrote:

Your formula fail. It returns past Due instead of blank. if A1=<blank,
A2=date value

=IF(ISBLANK(A1&A2),"",IF(A2A1,"Past Due",""))



"Gary Brown" wrote:

=IF(ISBLANK(A1&A2),"",IF(A2A1,"Past Due",""))
--
Hope this helps.
If this post was helpfull, please remember to click on the ''''YES''''
button at the bottom of the screen.
Thanks,
Gary Brown


"JayDee" wrote:

In A1, I have a date linked from another file worksheet. I used the If (is
blank) formula so no data appears unless there is a date to link from the
other worksheet.

In A2, I also have a date linked from another file worksheet. I also used
the If (is blank) formula so no data appears unless there is a date to link
from the other file worksheet.

I am trying to write a formula for Cell A3 that will return a given phrase
(i.e. past due) if the date in cell A2 is greater than the date A1. AND,
return a blank cell for A3 if there are no dates in cells A1 or A2.



T. Valko

multiple IF formulas
 
touche !

--
Biff
Microsoft Excel MVP


"John C" <johnc@stateofdenial wrote in message
...
Nice of you to notice, of course, you didn't notice that cells A1 and A2
are
pulling in dates from another sheet, and therefore, other values do not
populate in cells A1 & A2.
--
John C


"Teethless mama" wrote:

Your formula will fail if there are text value example: a1=a, a2=b

=IF(OR(A1="",A2=""),"",IF(A2A1,"PAST DUE",""))



"John C" wrote:


=IF(OR(A1="",A2=""),"",IF(A2A1,"PAST DUE",""))

Hope that helps.
--
John C


"JayDee" wrote:

In A1, I have a date linked from another file worksheet. I used the
If (is
blank) formula so no data appears unless there is a date to link from
the
other worksheet.

In A2, I also have a date linked from another file worksheet. I also
used
the If (is blank) formula so no data appears unless there is a date
to link
from the other file worksheet.

I am trying to write a formula for Cell A3 that will return a given
phrase
(i.e. past due) if the date in cell A2 is greater than the date A1.
AND,
return a blank cell for A3 if there are no dates in cells A1 or A2.






All times are GMT +1. The time now is 09:27 AM.

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