Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 62
Default If statement propblem

I have the below formula which is referencing a Data Valadation list (D5).
Does anyone have any ideas to expand it to inlcude all 12 months?

=IF($D$5="APR07",APR07!F$6,IF($D$5="MAY07",MAY07!F $6,IF($D$5="JUN07",JUN07!F$6,"")))
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,718
Default If statement propblem

=INDIRECT(D5&"!F6")

--
Jim
"Scott@CW" wrote in message
...
|I have the below formula which is referencing a Data Valadation list (D5).
| Does anyone have any ideas to expand it to inlcude all 12 months?
|
|
=IF($D$5="APR07",APR07!F$6,IF($D$5="MAY07",MAY07!F $6,IF($D$5="JUN07",JUN07!F$6,"")))


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 510
Default If statement propblem

Hi


=CHOOSE(MATCH($D$5,{"JAN07","FEB07","MAR07","APR07 ","MAY07","JUN07","JUL07","AUG07","SEP07","OKT07", "NOV07","DEC07"},0),JAN07!F$6;FEB07!F$6;MAR07!F$6; APR07!F$6;MAY07!F$6;JUN07!F$6;JUL07!F$6;AUG07!F$6; SEP07!F$6;OKT07!F$6;NOV07!F$6;DEC07!F$6)

Or
=INDIRECT($D$5 & "!F6")


Arvi Laanemets




"Scott@CW" wrote in message
...
I have the below formula which is referencing a Data Valadation list (D5).
Does anyone have any ideas to expand it to inlcude all 12 months?

=IF($D$5="APR07",APR07!F$6,IF($D$5="MAY07",MAY07!F $6,IF($D$5="JUN07",JUN07!F$6,"")))



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 62
Default If statement propblem

Thank you the choose and match formula worked great. I could not get the
INDIRECT one to work though.

"Arvi Laanemets" wrote:

Hi


=CHOOSE(MATCH($D$5,{"JAN07","FEB07","MAR07","APR07 ","MAY07","JUN07","JUL07","AUG07","SEP07","OKT07", "NOV07","DEC07"},0),JAN07!F$6;FEB07!F$6;MAR07!F$6; APR07!F$6;MAY07!F$6;JUN07!F$6;JUL07!F$6;AUG07!F$6; SEP07!F$6;OKT07!F$6;NOV07!F$6;DEC07!F$6)

Or
=INDIRECT($D$5 & "!F6")


Arvi Laanemets




"Scott@CW" wrote in message
...
I have the below formula which is referencing a Data Valadation list (D5).
Does anyone have any ideas to expand it to inlcude all 12 months?

=IF($D$5="APR07",APR07!F$6,IF($D$5="MAY07",MAY07!F $6,IF($D$5="JUN07",JUN07!F$6,"")))




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,718
Default If statement propblem

Perhaps you missed the apostrophe.

--
Jim
"Scott@CW" wrote in message
...
| Thank you the choose and match formula worked great. I could not get the
| INDIRECT one to work though.
|
| "Arvi Laanemets" wrote:
|
| Hi
|
|
|
=CHOOSE(MATCH($D$5,{"JAN07","FEB07","MAR07","APR07 ","MAY07","JUN07","JUL07","AUG07","SEP07","OKT07", "NOV07","DEC07"},0),JAN07!F$6;FEB07!F$6;MAR07!F$6; APR07!F$6;MAY07!F$6;JUN07!F$6;JUL07!F$6;AUG07!F$6; SEP07!F$6;OKT07!F$6;NOV07!F$6;DEC07!F$6)
|
| Or
| =INDIRECT($D$5 & "!F6")
|
|
| Arvi Laanemets
|
|
|
|
| "Scott@CW" wrote in message
| ...
| I have the below formula which is referencing a Data Valadation list
(D5).
| Does anyone have any ideas to expand it to inlcude all 12 months?
|
|
=IF($D$5="APR07",APR07!F$6,IF($D$5="MAY07",MAY07!F $6,IF($D$5="JUN07",JUN07!F$6,"")))
|
|
|


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
Can an If statement answer an If statement? M.A.Tyler Excel Discussion (Misc queries) 2 June 24th 07 04:14 AM
appending and IF statement to an existing IF statement spence Excel Worksheet Functions 1 February 28th 06 11:00 PM
If Statement help (I think) Toddmend Excel Discussion (Misc queries) 3 July 20th 05 10:19 PM
If statement and Isblank statement Rodney C. Excel Worksheet Functions 0 January 18th 05 08:39 PM
Help please, IF statement/SUMIF statement Brad_A Excel Worksheet Functions 23 January 11th 05 02:24 PM


All times are GMT +1. The time now is 11:01 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"