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

I need to write the below formuls to include all twelve months, and of course
I can't do more than 7 if's. Anyone have any ideas?

=IF(ISERROR(IF($D$5="APR07",MAR07!G14,IF($D$5="MAY 07",APR07!G$14,IF($D$5="JUN07",MAY07!G$14,"No
Data")))),"",IF($D$5="APR07",MAR07!G14,IF($D$5="MA Y07",APR07!G$14,IF($D$5="JUN07",MAY07!G$14,"No Data"))))
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default If statement problem

VLOOKUP
--
David Biddulph

"Scott@CW" wrote in message
...
I need to write the below formuls to include all twelve months, and of
course
I can't do more than 7 if's. Anyone have any ideas?

=IF(ISERROR(IF($D$5="APR07",MAR07!G14,IF($D$5="MAY 07",APR07!G$14,IF($D$5="JUN07",MAY07!G$14,"No
Data")))),"",IF($D$5="APR07",MAR07!G14,IF($D$5="MA Y07",APR07!G$14,IF($D$5="JUN07",MAY07!G$14,"No
Data"))))



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,202
Default If statement problem

If I understand your attempted formula correctly, I think you can use this
formula instead...

=IF(ISERROR(DATEVALUE(D5)),"No
Data",INDIRECT(TEXT(DATE(RIGHT(D5,2),MONTH(DATEVAL UE(D5))-1,1),"mmmyy")&"!G14"))

Rick


"Scott@CW" wrote in message
...
I need to write the below formuls to include all twelve months, and of
course
I can't do more than 7 if's. Anyone have any ideas?

=IF(ISERROR(IF($D$5="APR07",MAR07!G14,IF($D$5="MAY 07",APR07!G$14,IF($D$5="JUN07",MAY07!G$14,"No
Data")))),"",IF($D$5="APR07",MAR07!G14,IF($D$5="MA Y07",APR07!G$14,IF($D$5="JUN07",MAY07!G$14,"No
Data"))))


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
IF Statement problem MarkFrost39 Excel Worksheet Functions 0 September 6th 07 02:50 PM
IF Statement problem MarkFrost39 Excel Worksheet Functions 0 September 6th 07 02:50 PM
IF statement problem Ross Excel Discussion (Misc queries) 6 July 13th 06 04:47 PM
IF statement problem Kalabalana Excel Worksheet Functions 4 November 24th 04 08:37 PM
I have an "IF"Statement problem...please help!! cmk0007 Excel Worksheet Functions 1 November 5th 04 01:24 AM


All times are GMT +1. The time now is 08:23 PM.

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"