ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Connecting multiple IF statements into one formula (https://www.excelbanter.com/excel-discussion-misc-queries/260708-connecting-multiple-if-statements-into-one-formula.html)

KMBOhio

Connecting multiple IF statements into one formula
 
I am trying to create a formula using multiple IF statements. Individually
they all work but I don't know how to connect them in into one formula.
Basically, 4 possible date ranges that would each produce a different text
value. Any suggestions?

=IF(AND(I1=DATEVALUE("1-Jan"),I1<=DATEVALUE("31-Mar")),"Spring
Assortment")*IF(AND(I1=DATEVALUE("1-Apr"),I1<=DATEVALUE("30-Jun")),"Summer
Assortment")*IF(AND(I1=DATEVALUE("1-Jul"),I1<=DATEVALUE("30-Sep")),"Fall
Assortment")*IF(AND(I1=DATEVALUE("1-Oct"),I1<=DATEVALUE("31-Dec")),"Holiday
Assortment")


Eduardo

Connecting multiple IF statements into one formula
 
Hi,

=IF(AND(I1=DATEVALUE("1-Jan"),I1<=DATEVALUE("31-Mar")),"Spring
Assortment",IF(AND(I1=DATEVALUE("1-Apr"),I1<=DATEVALUE("30-Jun")),"Summer
Assortment",IF(AND(I1=DATEVALUE("1-Jul"),I1<=DATEVALUE("30-Sep")),"Fall
Assortment",IF(AND(I1=DATEVALUE("1-Oct"),I1<=DATEVALUE("31-Dec")),"Holiday
Assortment"))))

"KMBOhio" wrote:

I am trying to create a formula using multiple IF statements. Individually
they all work but I don't know how to connect them in into one formula.
Basically, 4 possible date ranges that would each produce a different text
value. Any suggestions?

=IF(AND(I1=DATEVALUE("1-Jan"),I1<=DATEVALUE("31-Mar")),"Spring
Assortment")*IF(AND(I1=DATEVALUE("1-Apr"),I1<=DATEVALUE("30-Jun")),"Summer
Assortment")*IF(AND(I1=DATEVALUE("1-Jul"),I1<=DATEVALUE("30-Sep")),"Fall
Assortment")*IF(AND(I1=DATEVALUE("1-Oct"),I1<=DATEVALUE("31-Dec")),"Holiday
Assortment")


T. Valko

Connecting multiple IF statements into one formula
 
Try this...

=IF(COUNT(I1),LOOKUP(MONTH(I1),{1;4;7;10},
{"Spring";"Summer";"Fall";"Holiday"})&" Assortment","")

--
Biff
Microsoft Excel MVP


"KMBOhio" wrote in message
...
I am trying to create a formula using multiple IF statements. Individually
they all work but I don't know how to connect them in into one formula.
Basically, 4 possible date ranges that would each produce a different text
value. Any suggestions?

=IF(AND(I1=DATEVALUE("1-Jan"),I1<=DATEVALUE("31-Mar")),"Spring
Assortment")*IF(AND(I1=DATEVALUE("1-Apr"),I1<=DATEVALUE("30-Jun")),"Summer
Assortment")*IF(AND(I1=DATEVALUE("1-Jul"),I1<=DATEVALUE("30-Sep")),"Fall
Assortment")*IF(AND(I1=DATEVALUE("1-Oct"),I1<=DATEVALUE("31-Dec")),"Holiday
Assortment")





All times are GMT +1. The time now is 04:34 AM.

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