+ Reply to Thread
Results 1 to 4 of 4

If statement and index match

  1. #1
    Registered User
    Join Date
    07-18-2022
    Location
    Phoenix
    MS-Off Ver
    365
    Posts
    2

    If statement and index match

    I would like to combine and IF statement and Index Match so that depending on what is entered in a cell I can index that info. Can anyone help?

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: If statement and index match

    ignore the last post info - wrong script used - sorry , i cannot edit to change for some reason

    not 100% sure what you mean

    in A1 you have a value you want to use in and index/match

    =index(column to recieve, match ( a2 , column to match,0))

    Note: Images are difficult to see , and also requires that I input all the data myself, which is very time consuming.

    A sample sheet would help here


    Please see the Yellow Banner at the top of the page explaining how to attach a sample spreadsheet

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.

    Here are the instructions, found at the top of the page again
    Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. For a new thread (1st post), scroll to Manage Attachments, otherwise scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.
    Last edited by etaf; 07-18-2022 at 02:11 PM.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    07-18-2022
    Location
    Phoenix
    MS-Off Ver
    365
    Posts
    2

    Re: If statement and index match

    ID Start time Completion time Conditions Sample 1 Sample 2
    1 7/8/22 9:06:12 7/8/22 9:06:43 a1 b1 c1
    2 7/8/22 13:20:37 7/8/22 13:22:07 a2 b2 c2
    3 7/8/22 13:31:47 7/8/22 13:32:29 a3 b3 c3
    4 7/18/22 11:27:51 7/18/22 11:30:48 a4 b4 c4



    ID Number
    1
    1st Answer a1
    2nd Answer Depending on Cell C11 IF(C11="a1",INDEX(E:E,MATCH(C10,A:A,0)))C11="A2",INDEX(F:F,MATCH(C10,A:A,)))

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: If statement and index match

    =IF(C11="A1",INDEX(E:E,MATCH(C10,A:A,0)),IF(C11="A2",INDEX(F:F,MATCH(C10,A:A,)),""))

    but a sample spreadsheet would still help

+ 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] Index and Match with an AND statement?
    By Ron Purpura in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-18-2020, 04:53 PM
  2. Index/Match with if/or statement
    By fjd9189 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-20-2019, 12:25 PM
  3. [SOLVED] Using an IF statement with INDEX / MATCH
    By Fermented Reptile in forum Excel General
    Replies: 3
    Last Post: 02-13-2017, 08:47 AM
  4. index match with if statement
    By Per_s in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-30-2016, 08:48 AM
  5. If statement with INDEX MATCH
    By JPSIMMON in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-13-2015, 01:19 PM
  6. Index & Match with IF statement
    By reggie1000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-20-2007, 01:49 PM
  7. Index() & Match() or just an if() Statement?
    By JustMe602 in forum Excel General
    Replies: 6
    Last Post: 12-12-2006, 04:24 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