+ Reply to Thread
Results 1 to 3 of 3

IF dependent INDEX MATCH

  1. #1
    Registered User
    Join Date
    02-06-2012
    Location
    washington DC
    MS-Off Ver
    Excel 2010
    Posts
    20

    IF dependent INDEX MATCH

    Hi guys,

    How would you make a formula that is dependent on the cell to the left of it?

    Say A1 could be "cars," "trucks," and "motorcycles"

    I want B1 to INDEX and MATCH in different locations depending if it is cars, trucks, or motorcycles.

    would it be something like(in B1) IF(A1="cars",INDEX(...))? What do you put in for the false statement of the IF?

    What is the maximum number of IF statements that you can have in one formula?

    Thanks guys,

    Jonathan

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: IF dependent INDEX MATCH

    Maybe something like this

    =INDEX(L1:N20,0,MATCH(A1,{"cars","Boats","planes"},0))

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: IF dependent INDEX MATCH

    Hi Jonathan,

    We have [area_num] as in last part in the syntax of Index, try looking at this and if still you have issues, post a sample file. Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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