+ Reply to Thread
Results 1 to 8 of 8

Looking for a formula - possibly V or H Lookup or MATCH?

  1. #1
    Registered User
    Join Date
    10-15-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    3

    Looking for a formula - possibly V or H Lookup or MATCH?

    Hi,

    I've been tasked with producing a Excel 2003 spreadsheet that looks at what remedial building works are outstanding and compares their asset numbers to a wallplanner which tells us when the next maintenance is due at each facilty. We want to do remedial jobs at the same as time as maintenance and there are hundreds, so it's not convenient to go through them one by one. Formulas are my weakness and unfortunately I've been playing with V and H Lookups and MATCH for days and am getting nowhere.

    The formula needs to do the following:
    Step 1 - Look at the asset numbers in the 'Outstanding Jobs' worksheet and find matches in the 'Wallplanner' worksheet.
    Step 2 - Once a match is found in the 'Wallplanner' worksheet, look across the row for the nearest non-blank cell.
    Step 3 - Return the date (which is the column title of the non-blank cell) under 'Maintenance Next Due Date' on the 'Outstanding Jobs' worksheet.test2.xls

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Looking for a formula - possibly V or H Lookup or MATCH?

    Perhaps in D2 and copy down?

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    10-15-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Looking for a formula - possibly V or H Lookup or MATCH?

    Thanks Fotis1991.
    Somehow it's not working for me but I can see what you're getting at. Maybe i'm not doing something quite right so will continue to play with it. Right now it is returning dates from the wallplanner - just not the right ones.

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Looking for a formula - possibly V or H Lookup or MATCH?

    Hi,

    =INDEX(Wallplanner!A:AL,MATCH('Outstanding Jobs'!A2,Wallplanner!A:A,0)-1,1+MATCH(TRUE,INDEX(Wallplanner!$B2:$AL2<>"",,),0))

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  5. #5
    Valued Forum Contributor
    Join Date
    09-15-2011
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    436

    Re: Looking for a formula - possibly V or H Lookup or MATCH?

    Please use this function (Require Ctrl+Shift+Enter)
    =INDEX(Wallplanner!$B$1:$AL$1,SMALL(IF(Wallplanner!$B$2:$AL$8<>"",IF(Wallplanner!$A$2:$A$8=$A2,COLUMN(Wallplanner!$B$1:$AL$1)-COLUMN(Wallplanner!$B$1)+1)),1))
    Attached Files Attached Files
    Please click 'Add reputation', if my answer helped you.

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

    Re: Looking for a formula - possibly V or H Lookup or MATCH?

    Try

    =INDEX(Wallplanner!$B$1:$AL$1,MATCH(TRUE,INDEX(INDEX(Wallplanner!B:AL,MATCH(A2,Wallplanner!A:A,0),0)<>"",0),0))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  7. #7
    Registered User
    Join Date
    10-15-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Looking for a formula - possibly V or H Lookup or MATCH?

    You guys are great. Thanks everyone! These are working a treat and you've saved me a massive headache. Now to decide which one is easiest...
    Last edited by Clare1234; 10-16-2013 at 10:22 AM. Reason: Want to thank everyone in one go.

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

    Re: Looking for a formula - possibly V or H Lookup or MATCH?

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help 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. [SOLVED] Advanced Match Help (possibly Index Match)
    By dfxryanjr in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-08-2013, 09:13 AM
  2. Replies: 6
    Last Post: 01-03-2012, 07:36 PM
  3. Problem with if or possibly match function
    By j.farr3ll in forum Excel General
    Replies: 4
    Last Post: 08-26-2010, 10:33 AM
  4. possibly a lookup function question, not sure
    By mufan in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-11-2008, 09:46 PM
  5. [SOLVED] Lookup possibly?
    By SS in forum Excel General
    Replies: 3
    Last Post: 01-06-2005, 10:06 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