+ Reply to Thread
Results 1 to 6 of 6

If (and) nesting

  1. #1
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Spencerport, NY
    MS-Off Ver
    Excel 2016
    Posts
    270

    If (and) nesting

    Hello All
    I am attempting to create a scheduling tool utilizing Excel 2010. It is very possible I am getting too fancy with this formula, but would greatly appreciate any feedback as to why I continue to get an #VALUE Error in some cells. Basically, I am trying to assign coverage of different medical disciplines in a clinic based upon the sum of 2 cells (I37 and I38). Cell I39 is a simple formula, which works properly, but I am finding that as I add just 1 more statements(In the exact same way) I am getting the #VALUE error in cells I40,I41 and I42. I have attached the file as it would be difficult to describe.
    As always, thanks to all
    Attached Files Attached Files

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,891

    Re: If (and) nesting

    If you use the below formula in cell I40, do you get the answer you're expecting?

    =VLOOKUP(SUM(I37:I38),Q36:T46,4,TRUE)

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: If (and) nesting

    In I39
    =LOOKUP(SUM($I$37:$I$38),$Q$36:$S$46)

    In I40
    =LOOKUP(SUM($I$37:$I$38),$Q$36:$T$46)

    In I41
    =LOOKUP(SUM($I$37:$I$38),$Q$36:$U$46)

    In I42
    =LOOKUP(SUM($I$37:$I$38),$Q$36:$V$46)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: If (and) nesting

    Try a lookup instead of all the IF ANDs

    For I39
    =LOOKUP(SUM($I$37:$I$38),$Q$36:$Q$46,$S$36:$S$46)

    Change the S's to T's for I 40, U for I41 and V for I42.

  5. #5
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Spencerport, NY
    MS-Off Ver
    Excel 2016
    Posts
    270

    Re: If (and) nesting

    Thank you all !

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: If (and) nesting

    You're welcome

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Nesting If AND and OR all at once
    By jswainson in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-10-2012, 01:55 PM
  2. Help with nesting
    By jdonham in forum Excel General
    Replies: 3
    Last Post: 07-11-2011, 03:16 PM
  3. Nesting IF's and AND's...
    By neilcarden in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-18-2007, 03:58 PM
  4. Nesting more than 7 ifs...another way?
    By Blade2304 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-04-2007, 11:17 AM
  5. [SOLVED] IF - Nesting... almost got it - need a bit of help
    By AngelaG in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 07:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1