Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Nested IF statement not need help

Help - nested IF statement not bringing back correct value

Cell A18=85 (result/value is SUM of other cells)
Cell
A19=IF(A1893,"A",IF(A1888,"AB",IF(A1883,"B",IF( A1878,"BC",IF(A1873,"C",IF(A1868,"CD",IF(A1863 ,"D","F")))))))

Unfortunately cell A19 is bringing back A .... not the correct value of B.
Can anyone tell me what's wrong?
--
MC
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default Nested IF statement not need help

I pasted the formula into A19, entered 85 in A18 and got the result B in A19,
as expected..

I think you have a text value in A18
Test with
=ISNUMBER(A18) in any cell

If you get FALSE then that is your problem...

Format the cell as Number... enter 85 again and your formula will work...
--
--------
If this is what you wanted then press the ''''YES'''' button (if you see it)


"wtamustudentmc" wrote:

Help - nested IF statement not bringing back correct value

Cell A18=85 (result/value is SUM of other cells)
Cell
A19=IF(A1893,"A",IF(A1888,"AB",IF(A1883,"B",IF( A1878,"BC",IF(A1873,"C",IF(A1868,"CD",IF(A1863 ,"D","F")))))))

Unfortunately cell A19 is bringing back A .... not the correct value of B.
Can anyone tell me what's wrong?
--
MC

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Nested IF statement not need help

Create a 2 column table like this:

0.........F
64.......D
69......CD
74......C
79......BC
84......B
89.....AB
94.....A

Assume that table is in the range A1:B8

Then use this formula to get the grade:

=IF(A18="","",VLOOKUP(A18,A1:B8,2))

--
Biff
Microsoft Excel MVP


"Sheeloo" <Click above to get my email id wrote in message
...
I pasted the formula into A19, entered 85 in A18 and got the result B in
A19,
as expected..

I think you have a text value in A18
Test with
=ISNUMBER(A18) in any cell

If you get FALSE then that is your problem...

Format the cell as Number... enter 85 again and your formula will work...
--
--------
If this is what you wanted then press the ''''YES'''' button (if you see
it)


"wtamustudentmc" wrote:

Help - nested IF statement not bringing back correct value

Cell A18=85 (result/value is SUM of other cells)
Cell
A19=IF(A1893,"A",IF(A1888,"AB",IF(A1883,"B",IF( A1878,"BC",IF(A1873,"C",IF(A1868,"CD",IF(A1863 ,"D","F")))))))

Unfortunately cell A19 is bringing back A .... not the correct value of
B.
Can anyone tell me what's wrong?
--
MC



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 857
Default Nested IF statement not need help

Hi,

A lookup approach makes for a much shorter formula:

Create a range like

0 F
64 D
69 CD
74 C
79 BC
84 B
89 AB
94 A

You can adjust the first column depending on have your grades break out,
that is if your grade are things like 78.21 then you many need use 79.01 or
you may need 79.000001. Suppose the above table is in A1:C8 then the formula
would be

=LOOKUP(A18,A1:B8)

or without a lookup table:

=LOOKUP(A18,{0,"F";64,"D";69,"CD";74,"C";79,"BC";8 4,"B";89,"AB";94,"A"})

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"wtamustudentmc" wrote:

Help - nested IF statement not bringing back correct value

Cell A18=85 (result/value is SUM of other cells)
Cell
A19=IF(A1893,"A",IF(A1888,"AB",IF(A1883,"B",IF( A1878,"BC",IF(A1873,"C",IF(A1868,"CD",IF(A1863 ,"D","F")))))))

Unfortunately cell A19 is bringing back A .... not the correct value of B.
Can anyone tell me what's wrong?
--
MC

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
Nested If Statement teethomas Excel Worksheet Functions 7 September 11th 08 10:06 PM
Nested if statement ? Angelaf Excel Worksheet Functions 3 April 14th 08 02:28 PM
nested what if statement brian Excel Worksheet Functions 1 April 23rd 07 12:11 AM
IF STATEMENT - NESTED tojo107 Excel Worksheet Functions 4 April 19th 07 08:14 PM
Nested if statement burl_h Excel Worksheet Functions 3 December 16th 06 06:35 PM


All times are GMT +1. The time now is 01:48 AM.

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"