Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Nested formula trouble

Hi, people...this is the second time I post this because the other one didn't
go through. I've added this formula to an Excel table:

=IF(B2=a,10,"IF(B2=b,8,IF(B2=c,6)))")

According to the nested-formula rules, this formula is well-formatted. It's
to calculate the points one gets when assigned a particular letter-grade (A
thru C).

HOWEVER, though I don't get an actual error message, the cell where the
result should appear only reads this:

#NAME?

Can someone please tell me what I'm doing wrong? Much appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Nested formula trouble

Whay you're doing wrong is forgetting quotes where you need them, around
text strings (because a, b, and c weren't defined as names), and putting
quotes where you don't want them, around your second IF statement.

Try =IF(B2="a",10,IF(B2="b",8,IF(B2="c",6)))

You may also want to define what you want as a result if B2 is other than a,
b, or c.
--
David Biddulph

"PowerPointless" wrote in message
...
Hi, people...this is the second time I post this because the other one
didn't
go through. I've added this formula to an Excel table:

=IF(B2=a,10,"IF(B2=b,8,IF(B2=c,6)))")

According to the nested-formula rules, this formula is well-formatted.
It's
to calculate the points one gets when assigned a particular letter-grade
(A
thru C).

HOWEVER, though I don't get an actual error message, the cell where the
result should appear only reads this:

#NAME?

Can someone please tell me what I'm doing wrong? Much appreciated.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 92
Default Nested formula trouble

Hello,

=IF(B2=a,10,"IF(B2=b,8,IF(B2=c,6)))")


You do not identify your strings/characters to Excel correctly.

Try
=IF(B2="a",10,IF(B2="b",8,IF(B2="c",6)))

Or
=INDEX({10,8,6},MATCH(B2,{"a","b","c"},FALSE))

Regards,
Bernd

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 formula trouble. PowerPointless Excel Worksheet Functions 4 March 19th 07 08:59 AM
Trouble with condition nested formula wilywayne New Users to Excel 2 August 31st 06 05:26 PM
I'm new at this - having trouble with a formula Dave Excel Discussion (Misc queries) 3 January 8th 06 02:16 AM
Trouble with nested IF formula TheRobsterUK Excel Worksheet Functions 1 October 5th 05 02:51 AM
Formula Trouble JS Excel Worksheet Functions 7 March 24th 05 06:55 PM


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