Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Nested Ifs in 2007

On Thu, 20 Nov 2008 14:23:01 -0800, NHMcCormick07
wrote:

I have a survey sheet where users have 4 questions to answer Yes or No to.
Depending on the combination of Yes's and No's, I need to return a certain
cell value from another worksheet.
There are 5 possible combinations (1=No, No, No, No/ 2=Yes, No, No, No/3=
Yes, Yes, No, No /4=Yes, Yes, Yes, No /5=Yes, Yes, Yes, Yes). So, for
example, if a user responds "No, No, No, No" I need the cell containing the
formula to return a value that is in another worksheet. The other value is
the "solution" so to speak to their responses. If they answer No to all the
questions, then the answer to their problem is the text that is in a cell on
the corresponding worksheet.
I am a MOUS trainer and a student has asked me to help them out with this
and I am stumped!
Thanks!




You could do something like in a cell on Sheet1:

=VLOOKUP(SUMPRODUCT((LEFT($A$1:$A$4)="y")*{1;2;4;8 }),Sheet2!$A$1:$B$5,2,FALSE)

The SUMPRODUCT function should return a unique number depending on the
combination of Yes/No in A1:A4.

VLOOKUP will return an #NA error if the combination is not a valid one.

Your table on Sheet2 should be set up as:

0 If the 10 day caller does not reach the contact, a one day follow up is
set for the billing specialist.
1 Option for YNNN
3 Option for YYNN
7 If the customer has disputes, necessary adjustments will be made and
the revised invoices will be sent. Follow up in 7 business days.
15 Option for YYYY

Depending on what you want to do in the event of an error (and also if you are
running Excel 2007), you can wrap the above in either an IF or an IFERROR
function.

For example, in Excel 2007:

=IFERROR(VLOOKUP(SUMPRODUCT((LEFT($A$1:$A$4)="y")
*{1;2;4;8}),Sheet2!$A$1:$B$5,2,FALSE),"Invalid Answers")

--ron
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
Excel 2007 balks at 7 nested IFs Hal mcl Excel Worksheet Functions 5 November 12th 09 11:15 PM
Nested IF compatability error with Excel 2007 Ed C Excel Worksheet Functions 7 October 8th 08 08:58 PM
Excel 2007 - Outline not displaying all nested subtotals Tammy Excel Worksheet Functions 0 August 21st 08 05:10 PM
Excel 2007 nested function David Price Excel Worksheet Functions 2 July 9th 08 10:20 AM
Excel 2007 Nested Sumif's TKS_Mark Excel Worksheet Functions 1 September 25th 07 03:12 PM


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