Consulting

Results 1 to 13 of 13

Thread: VLOOKUP or INDEX NATCH

  1. #1
    Moderator VBAX Master austenr's Avatar
    Joined
    Sep 2004
    Location
    Maine
    Posts
    2,033
    Location

    VLOOKUP or INDEX NATCH



    On my Input Log sheet above there is a column called Completed Date for each Supplier for Scorecard, Audit and BRM. What I need to do is take that date and put a "C" on the Master Schedule sheet for completed in the appropriate cell for the date and Supplier.

    Master Schedule sheet:

    master schedule.jpg

    Sorry for the snippet. Workbook is too large to upload.
    Peace of mind is found in some of the strangest places.

  2. #2
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,876
    Formula or macro?
    It would help an awful lot if you could supply a workbook with reduced data, just containing those two sheets, where there were at least some rows in both that corresponded.
    I'm thinking for a formula solution that a formula in the cells in the Master Schedule sheet that would check for the existence of the company in column B on the other sheet and whether there was a completed date and whether that date was the same as in row 1 directly above the formula in the Master Schedule sheet. Something along the lines of
    if(vlookup($B2,'Input Log'!$B$2:$F$1000,5,false)=C$1,"C","")
    entered in C2 and copied across and down.
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

  3. #3
    Moderator VBAX Master austenr's Avatar
    Joined
    Sep 2004
    Location
    Maine
    Posts
    2,033
    Location
    Thanks, that didn't work but maybe its because THE VALUE OF column B of Input Log is the result of a VLOOKUP?

    I tried something like this but that didnt work either:

    =vlookup(vlookup($B2,'Input Log'!$B$2:$F$1000,5,false),=c$1,”C”,””)
    Peace of mind is found in some of the strangest places.

  4. #4
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,876
    It becomes pure guesswork without a workbook to try on.
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

  5. #5
    Moderator VBAX Master austenr's Avatar
    Joined
    Sep 2004
    Location
    Maine
    Posts
    2,033
    Location
    I put the workbook in my dropbox account.

    Here is the link:

    https://www.dropbox.com/s/i9gbjvlvd0...late.xlsm?dl=0
    Peace of mind is found in some of the strangest places.

  6. #6
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,876
    Two problems.
    1.Although the date in column F of the Input Log looks as if it is just month year, it isa full date, and not just the first of the month; when comparing these dates with the dates on the first row of Master Schedule you rarely get a match because those date are the first of each month. This should't be difficult to work around.
    2. There are multiple entries on the Input Log sheet with different types of Action in column D (even multiple entries with the same Type of Action). Which one to take?
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

  7. #7
    Moderator VBAX Master austenr's Avatar
    Joined
    Sep 2004
    Location
    Maine
    Posts
    2,033
    Location
    I would go with #1.
    Peace of mind is found in some of the strangest places.

  8. #8
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,876
    Quote Originally Posted by austenr View Post
    I would go with #1.
    lol!
    These 2 problems are not mutually exclusive; there are 2 problems and both need to be addressed.
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

  9. #9
    Moderator VBAX Master austenr's Avatar
    Joined
    Sep 2004
    Location
    Maine
    Posts
    2,033
    Location
    Change in requirements. Now using Summary sheet and Master schedule. Still cant get it to work though.
    Peace of mind is found in some of the strangest places.

  10. #10
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,876
    Test the following:
    Master Schedule sheet:
    in C2:
    =IF(EOMONTH(VLOOKUP($B2,'Summary-Schedule'!$B$2:$K$999,8,FALSE),-1)+1=C$1,"C","")

    in C3:
    =IF(EOMONTH(VLOOKUP($B3,'Summary-Schedule'!$B$2:$K$999,10,FALSE),-1)+1=C$1,"C","")

    in C4:
    =IF(EOMONTH(VLOOKUP($B4,'Summary-Schedule'!$B$2:$K$999,6,FALSE),-1)+1=C$1,"C","")

    Select the three above cells together and copy across, then the three rows together and copy down.

    There's not much to see especially as row 1 jumps from Dec-2014 to Jun-2016 at columns L:M where one of the results would show.
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

  11. #11
    Moderator VBAX Master austenr's Avatar
    Joined
    Sep 2004
    Location
    Maine
    Posts
    2,033
    Location
    Thanks. That solved it. After I fixed the dates in the top row Im right where I need to be.
    Peace of mind is found in some of the strangest places.

  12. #12
    Moderator VBAX Master austenr's Avatar
    Joined
    Sep 2004
    Location
    Maine
    Posts
    2,033
    Location
    One question I have though. If the date on the Input Log changes, is there a way to move the "X" to a different date that is chosen and remove the "X" from the original spot?
    Peace of mind is found in some of the strangest places.

  13. #13
    Moderator VBAX Master austenr's Avatar
    Joined
    Sep 2004
    Location
    Maine
    Posts
    2,033
    Location
    Never mind it already does that.
    Peace of mind is found in some of the strangest places.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •