+ Reply to Thread
Results 1 to 9 of 9

Wanting to return values from another sheet =VLOOKUP COLUMN ??

  1. #1
    Registered User
    Join Date
    01-22-2020
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    6

    Wanting to return values from another sheet =VLOOKUP COLUMN ??

    I wanting to lookup values in Column M that are below 0 and not OFF HIRE and return the whole Row in relation to that Column.
    So search M2:M78 and say return A2:AB2 if the M column is 0 or below and doesn’t say OFF HIRE


    My M column looks at 2 dates and checks to see if it is overdue , but if if has a date that it comes off hire this value changes from days overdue to OFF HIRE the formula in M Column is =IF(ISBLANK(U2),L2-TODAY(),"OFF HIRE")


    My formula I have tried using to achieve this is =VLOOKUP(A3,Equipment!$M$2:$M$78,COLUMN(Equipment!A2),FALSE)

    And my A3 is <0,”OFF HIRE”

    Kind Regards
    Josh
    Last edited by AliGW; 01-23-2020 at 01:40 AM. Reason: Irrelevant section of title removed: this is a HELP forum!!!

  2. #2
    Registered User
    Join Date
    01-22-2020
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    6

    Re: HELP! Wanting to return values from another sheet =VLOOKUP COLUMN ??

    please find photo in relation to M Column and the Row i want to returnAttachment 659128

  3. #3
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: HELP! Wanting to return values from another sheet =VLOOKUP COLUMN ??

    Quote Originally Posted by joshc1994 View Post
    . . . that are below 0 and not OFF HIRE . . . is 0 or below and doesn’t say OFF HIRE . . . is <0,”OFF HIRE” . . .
    Below 0 and 0 or below are NOT the same thing. Add <0, and majority rule would indicate you want negative values.

    L2 would be the hire date, U2 would be the off-hire date? M2 would then be OFF HIRE if U2 contains anything, or negative days after hire? M2 could thus be 0 (L2 = TODAY() and U2 blank), negative (L2 < TODAY() and U2 blank), or OFF HIRE (U2 not blank)? You want to find the first value in Equipment!$M$2:$M$78 which isn't 0 and return the entire row from Equipment!$A$2:$AB$78?

    If so, simplest to use 29 cells.

    Negative Values
    AZ2: =MATCH(TRUE,INDEX(Equipment!$M$2:$M$78<0,0),0)

    Anything other than OFF HIRE
    AZ2: =MATCH(TRUE,INDEX(Equipment!$M$2:$M$78<>"OFF HIRE",0),0)

    Results
    BA2: =INDEX(Equipment!A$2:A$78,$AZ2)

    Fill BA2 right into BB2:CB2.

  4. #4
    Registered User
    Join Date
    01-22-2020
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    6

    Re: HELP! Wanting to return values from another sheet =VLOOKUP COLUMN ??

    I made a example of my document this might help, i cannot decipher what you want me to do
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: HELP! Wanting to return values from another sheet =VLOOKUP COLUMN ??

    I added formulas to your example here, and attached below.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    01-22-2020
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    6

    Re: HELP! Wanting to return values from another sheet =VLOOKUP COLUMN ??

    kool ill give that a try thankyou

  7. #7
    Registered User
    Join Date
    01-22-2020
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    6

    Re: HELP! Wanting to return values from another sheet =VLOOKUP COLUMN ??

    I got partway with it, there is still an issue i cant rectify. if you have a look at the |Equipment Page| and the |overdue column| and compare that to the |Overdue Page| they don't really match as if they are out by 1
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: HELP! Wanting to return values from another sheet =VLOOKUP COLUMN ??

    Quote Originally Posted by joshc1994 View Post
    . . . an issue i cant rectify. . . . don't really match as if they are out by 1
    You're correct. An off-by-1 error on my part. Change the formula in Overdue!B10 to

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


    Then fill that formula down. I fixed the formula in my example workbook on OneDrive. The link in my previous response still works.

  9. #9
    Registered User
    Join Date
    01-22-2020
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    6

    Re: HELP! Wanting to return values from another sheet =VLOOKUP COLUMN ??

    Quote Originally Posted by hrlngrv View Post
    You're correct. An off-by-1 error on my part. Change the formula in Overdue!B10 to

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


    Then fill that formula down. I fixed the formula in my example workbook on OneDrive. The link in my previous response still works.
    Legend, all worked, managed to now setup a bunch of these to work for multiple pages.
    Many thanks, I was nowhere near getting that to work.

+ 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] I am wanting to sort one column into multiple columns on another sheet
    By cmyers5613 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-13-2020, 04:11 PM
  2. Replies: 8
    Last Post: 10-12-2018, 08:54 AM
  3. Replies: 2
    Last Post: 06-05-2018, 04:06 PM
  4. Replies: 6
    Last Post: 12-03-2013, 06:36 AM
  5. Vlookup to return multiple corresponding column values
    By ebdmbfan in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-29-2013, 04:33 PM
  6. VLOOKUP return column from different sheet
    By sglick in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-18-2007, 05:40 PM
  7. [SOLVED] After adding a new sheet, wanting to compare cell values
    By Emmert in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2006, 04:20 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