Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Using multiple IF statements

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.worksheet.functions
external usenet poster
 
Posts: 905
Default Using multiple IF statements

"KMBOhio" wrote:
Basically, 4 possible date ranges that would
each produce a different text value. Any
suggestions?


=IF(I1<DATEVALUE("1-Apr"), "Spring Assortment",
IF(I1<DATEVALUE("1-Jul"), "Summer Assortment".
IF(I1<DATEVALUE("1-Oct"),"Fall Assortment",
"Holiday Assortment")))

I don't like the use of DATEVALUE. I would be inclined to use
DATE(YEAR(I1),4,1) instead of DATEVALUE("1-Apr"), for example.


----- original message -----

"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")

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 looking up multiple ranges. mike Excel Worksheet Functions 7 August 9th 07 04:55 PM
Multiple AND & OR statements [email protected] Excel Worksheet Functions 6 May 17th 07 06:22 AM
Multiple if statements with multiple conditions egarcia Excel Discussion (Misc queries) 4 January 29th 07 10:46 PM
Multiple If Statements excelrookie05 Excel Worksheet Functions 2 September 14th 05 02:19 PM
multiple if statements ddepasquale Excel Worksheet Functions 3 August 5th 05 09:55 PM


All times are GMT +1. The time now is 07:28 PM.

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

About Us

"It's about Microsoft Excel"