+ Reply to Thread
Results 1 to 10 of 10

Return Warehouse number

  1. #1
    Registered User
    Join Date
    02-09-2025
    Location
    Auckland
    MS-Off Ver
    2024
    Posts
    3

    Return Warehouse number

    Hi There

    I'm wanting to return a warehouse number (Cells G18-L18) on another sheet from a lot ID number (Column F) and a stock value (columns G-L)

    What formula should I use for this?

    Any help appreciated

    image001.png

    Thanks

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,134

    Re: Return Warehouse number

    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file and a mocked up solution.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    02-09-2025
    Location
    Auckland
    MS-Off Ver
    2024
    Posts
    3

    Re: Return Warehouse number

    warehouse number.xlsx hopefully this works

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,925

    Re: Return Warehouse number

    Welcome to the forum.

    You could try:

    =FILTER(G18:L18,FILTER(G19:L26,F19:F26=A1)<>"")

    where A1 is a cell containing the lot number.

    If you can't implement this, provide a workbook as requested above.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,925

    Re: Return Warehouse number

    For the sample workbook:

    =FILTER(G2:L2,FILTER(G3:L12,F3:F12="4431600316")<>"")

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,134

    Re: Return Warehouse number

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

  7. #7
    Registered User
    Join Date
    02-09-2025
    Location
    Auckland
    MS-Off Ver
    2024
    Posts
    3

    Re: Return Warehouse number

    Thanks for the replies

    Apologies I missed out some detail, attached corrected sheet below

    I am looking to do this across two sheets

    In the Warehouse return sheet column B I am wanting to return the warehouse number based on the lot ID number in column H

    The lot id will have a match in the SOH sheet column F and will have a value (greater than 0) in cells G3 to L12 with a corresponding warehouse number in the same column as the cell with the value, in this example it would return cell H2 (whs 200)

    warehouse number v2.xlsx

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,925

    Re: Return Warehouse number

    Were you really not able to adapt what I gave you?

    =FILTER(SOH!G2:L2,FILTER(SOH!G3:L12,SOH!F3:F12=H6)<>"")

    Anchor the ranges if you want to copy the formula up/down:

    =FILTER(SOH!$G$2:$L$2,FILTER(SOH!$G$3:$L$12,SOH!$F$3:$F$12=H6)<>"")

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,134

    Re: Return Warehouse number

    For mine, in B2 copied down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,925

    Re: Return Warehouse number

    If you need anything explaining, please just shout.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered 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. Warehouse optimization
    By rbmusiq in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-29-2018, 03:25 PM
  2. [SOLVED] Warehouse Management
    By Altair737 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-27-2018, 09:04 AM
  3. Replies: 0
    Last Post: 06-17-2017, 12:53 AM
  4. Replies: 7
    Last Post: 12-06-2015, 05:40 PM
  5. Warehouse Optimization
    By Matt Lee in forum Excel General
    Replies: 8
    Last Post: 12-29-2010, 05:14 PM
  6. Warehouse Inventory
    By skumar0807 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-30-2010, 04:37 AM
  7. Warehouse management VBA
    By rushdie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-05-2009, 09:13 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