Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default 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")

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default 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")

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default 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")



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
Multiple "IF" statements in a formula lawandgrace Excel Discussion (Misc queries) 1 June 2nd 09 05:55 PM
Connecting multiple IF THEN formulas in one cell hmlguru Excel Worksheet Functions 6 July 18th 08 03:56 PM
connecting multiple cells to new sheet (VLOOKUP?IF?) Gregula Excel Worksheet Functions 1 August 18th 06 08:03 PM
Connecting multiple worksheets fyon Excel Discussion (Misc queries) 1 January 5th 05 04:43 AM
connecting multiple worksheets fyon Excel Worksheet Functions 1 January 5th 05 03:11 AM


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

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"