+ Reply to Thread
Results 1 to 5 of 5

Nesting Issues

Hybrid View

  1. #1
    Registered User
    Join Date
    07-17-2014
    Location
    United States
    MS-Off Ver
    2007
    Posts
    2

    Nesting Issues

    Is there a better way to write the formula below so I can add more. I keep getting an error (more levels of nesting than allowed). It will only hold 8 in a cell.

    Thank you in advance for your help.

    Demo.


    =IF('Vehicle Inspection'!A2="A",'Vehicle Inspection'!C2,IF('Vehicle Inspection'!A2="B",'Vehicle Inspection'!C3,IF('Vehicle Inspection'!A2="C",'Vehicle Inspection'!C4,IF('Vehicle Inspection'!A2="D",'Vehicle Inspection'!C5,IF('Vehicle Inspection'!A2="E",'Vehicle Inspection'!C6,IF('Vehicle Inspection'!A2="F",'Vehicle Inspection'!C7,IF('Vehicle Inspection'!A2="G",'Vehicle Inspection'!C8,IF('Vehicle Inspection'!A2="H",'Vehicle Inspection'!C9))))))))

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

    Re: Nesting Issues

    Try

    =INDEX('Vehicle Inspection'!C2:C9,MATCH('Vehicle Inspection'!A2,{"A","B","C","D","E","F","G","H"},0))

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

    Re: Nesting Issues

    Try
    =LOOKUP('Vehicle Inspection'!A2,{"A","B","C","D","E","F","G","H"},'Vehicle Inspection'!C2:C9)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Registered User
    Join Date
    07-17-2014
    Location
    United States
    MS-Off Ver
    2007
    Posts
    2

    Re: Nesting Issues

    Thank you both! They both work but I need to be able to add more boxes for example.

    =LOOKUP('Vehicle Inspection'!A2:A200,{"A","B","C","D","E","F","G","H"},'Vehicle Inspection'!C2:C200)

    =INDEX('Vehicle Inspection'!C2:C200,MATCH('Vehicle Inspection'!A2:A200,{"A","B","C","D","E","F","G","H"},0))

    When I do this it say value is not avaiable to the formula or function. Is there away to add more boxes to same formula?

    Thank you

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Nesting Issues

    Create a table then use a lookup function.

    See this:

    http://contextures.com/xlFunctions02.html
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Replies: 3
    Last Post: 07-16-2014, 01:50 AM
  2. Data Validation List Issues/Sorting Issues
    By taylorbe in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-12-2014, 09:53 AM
  3. Nesting issues
    By Shmem in forum Excel General
    Replies: 12
    Last Post: 11-12-2009, 08:07 PM
  4. IF - Nesting... almost got it - need a bit of help
    By AngelaG in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  5. IF - Nesting... almost got it - need a bit of help
    By AngelaG in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 PM

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