Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 23
Default if function error

I'm trying to use the if function to grab the corresponding value (2 rows
below) that matches the month of the current date. I have the following
formula but get an error message. If I reduce the criteria to 8 or less the
function will work, but not if I have more than 8 if statements. Can anyone
help me condense the formula for Excel 2007 to understand?
Jan = C4
Feb = D4
Mar = E4
Apr = F4
May = G4
Jun = H4
Jul = I4
Aug = J4
Sep = K4
Oct = L4
Nov = M4
Dec = N4

Function=IF(O3=C4,C6,IF(O3=D4,D6,IF(O3=E4,E6,IF(O3 =F4,F6,IF(O3=G4,G6,IF(O3=H4,
H6,IF(O3=I4,I6,IF(O3=J4, J6,IF(O3=K4, K6,IF(O3=L4, L6,IF(O3=M4, M6,N6)))))))))
))

Error Msg: "The specified formula cannot be entered because it uses more
levels of nesting than are allowed in the current file format"

--
Message posted via http://www.officekb.com

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default if function error

Try this:

=HLOOKUP(O3,C4:N6,3,)



"AHizon via OfficeKB.com" wrote:

I'm trying to use the if function to grab the corresponding value (2 rows
below) that matches the month of the current date. I have the following
formula but get an error message. If I reduce the criteria to 8 or less the
function will work, but not if I have more than 8 if statements. Can anyone
help me condense the formula for Excel 2007 to understand?
Jan = C4
Feb = D4
Mar = E4
Apr = F4
May = G4
Jun = H4
Jul = I4
Aug = J4
Sep = K4
Oct = L4
Nov = M4
Dec = N4

Function=IF(O3=C4,C6,IF(O3=D4,D6,IF(O3=E4,E6,IF(O3 =F4,F6,IF(O3=G4,G6,IF(O3=H4,
H6,IF(O3=I4,I6,IF(O3=J4, J6,IF(O3=K4, K6,IF(O3=L4, L6,IF(O3=M4, M6,N6)))))))))
))

Error Msg: "The specified formula cannot be entered because it uses more
levels of nesting than are allowed in the current file format"

--
Message posted via http://www.officekb.com


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 23
Default if function error

Thanks that works...Thanks so much!!

Teethless mama wrote:
Try this:

=HLOOKUP(O3,C4:N6,3,)

I'm trying to use the if function to grab the corresponding value (2 rows
below) that matches the month of the current date. I have the following

[quoted text clipped - 20 lines]
Error Msg: "The specified formula cannot be entered because it uses more
levels of nesting than are allowed in the current file format"


--
Message posted via http://www.officekb.com

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
Possible error in MOD function Peter K[_2_] Excel Worksheet Functions 2 February 23rd 08 01:53 AM
Function error Rosemary Excel Worksheet Functions 8 October 20th 06 09:50 AM
If error function Neil M Excel Worksheet Functions 6 April 26th 06 06:56 PM
IF THEN function error jmcclain Excel Worksheet Functions 10 January 8th 05 12:18 AM
IF function with #N/A error Roccobarocco Excel Worksheet Functions 4 December 5th 04 08:59 PM


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