+ Reply to Thread
Results 1 to 5 of 5

index and match with different column location

  1. #1
    Registered User
    Join Date
    07-10-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    12

    index and match with different column location

    Hi everybody,

    I have some problem here that i know you guys can help me.
    i am very new in excel, dont know what kind of formula i use for this attachment.

    unknown lookup formula.xls

    Thanks and advance

    aie
    Last edited by abshmo5; 08-25-2013 at 07:03 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    09-07-2006
    Posts
    520

    Re: how to use formula in my case - unknown formula to use

    Here's one construct which delivers the results ..

    As all Holes data in the 10 cols C to L need to be checked for the value in O4
    Put in S4: =INDEX($A:$A,MATCH($O4,C:C,0))
    Put in S5: =INDEX($B:$B,MATCH($O4,C:C,0))
    Copy S4:S5 across by 10 cols to AB4:AB5

    Then you could use these to gather the desired results
    In P4, normal ENTER will do: =INDEX(S4:AB4,MATCH(TRUE,INDEX(S4:AB4<>"N/A",),0))
    In P5, normal ENTER will do: =INDEX(S5:AB5,MATCH(TRUE,INDEX(S5:AB5<>"N/A",),0))
    Format P4 as date

    -----------------------------------------
    Success? Celebrate it, hit the little star at the bottom left of my responses

  3. #3
    Forum Contributor
    Join Date
    12-23-2003
    Posts
    179

    Re: how to use formula in my case - unknown formula to use

    Given that:

    A2:A31 houses dates, B2:B31 either day or night shift states, C2:L31 the occurrences of the lookup value, and O4 116650 which is the lookup value of interest:

    P4, control+shift+enter, not just enter:

    =INDEX(A2:A31,MIN(IF(C2:L31=O4,ROW(C2:L31)-ROW(C2)+1)))

    Q4, control+shift+enter, not just enter:

    =INDEX(B2:B31,MIN(IF(C2:L31=O4,ROW(C2:L31)-ROW(C2)+1)))

  4. #4
    Registered User
    Join Date
    07-10-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: how to use formula in my case - unknown formula to use

    Thank you so much Aladin Akurek, thank you also Max Singapore, both works and i just choose the simplier one

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: how to use formula in my case - unknown formula to use

    abshmo5,

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. Unknown Formula changes
    By izzynh in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-15-2012, 09:32 AM
  2. if, then formula help for an unknown number
    By flopped.quads00 in forum Excel General
    Replies: 5
    Last Post: 01-06-2012, 11:44 PM
  3. Change Formula for unknown last Row
    By realniceguy5000 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-21-2011, 08:12 AM
  4. [SOLVED] Unknown Formula
    By Lucky_guy2000 in forum Excel General
    Replies: 4
    Last Post: 04-28-2006, 11:25 AM
  5. Formula to look for value in a row depending on unknown value?
    By pcsski in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-25-2006, 03:30 PM

Tags for this Thread

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