+ Reply to Thread
Results 1 to 6 of 6

How to nest INDEX and Match into IF statements?

Hybrid View

  1. #1
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    365 Version 2409
    Posts
    2,789

    Re: How to nest INDEX and Match into IF statements?

    Hi Matthew,

    I'm not a real formula guy, but I managed to come up with a solution. The efficiency of these formulas is probably low, but it was fun working them out. oeldere's are probably more efficient with the helper columns, but here you are.

    I ran these on your test sheet. They were written in cells I2:M2.
    I2, K2,L2 and M2 are all array formulas which means they must be entered with Control + Shift + Enter, not just Enter.
    The formula in J2 is just a regular formula, use Enter.

    I2:
    Formula: copy to clipboard
    =INDEX($C$3:$C$17,MATCH(MIN(ABS((IF($A$3:$A$17=H4,$C$3:$C$17,999)-$I$1))),ABS((IF($A$3:$A$17=H4,$C$3:$C$17-$I$1,999))),0))


    J2:
    Formula: copy to clipboard
    =ABS($I$1-$I4)


    K2:
    This formula can be copied into L2 and M2.
    Formula: copy to clipboard
    =INDEX(D$3:D$17,MATCH($H4 & "|" & $I4,$A$3:$A$17 & "|" & $C$3:$C$17,0))


    Good Luck.
    Attached Files Attached Files

+ 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] Nested If Statements or Match/Index???
    By djbcktt in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-10-2014, 12:57 AM
  2. Multiple If statements or INDEX MATCH? Im confused.
    By amedinak in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-20-2014, 05:08 AM
  3. [SOLVED] IF statements with nested INDEX MATCH
    By desertfx41 in forum Excel General
    Replies: 5
    Last Post: 07-08-2014, 03:26 PM
  4. HOW TO ? - Having issue with INDEX / Match and to nest with IF
    By icmpl in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-27-2013, 07:35 AM
  5. Using INDEX/MATCH With Multiple IF Statements
    By doraen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-17-2011, 04:10 PM
  6. Index Match - nested If (less than/greater than statements)
    By kelea in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-28-2009, 04:40 PM
  7. index/match lookup - with If statements
    By Algeraist in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-19-2008, 12:10 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