Automatically populate a cell with predefined text, based on text from another sheet

Anonymous
2023-09-27T19:30:03+00:00

Good day,

I would like to automatically fill a cell with predefined text (Customer name), based on a value (product number) that I type in.
Whenever I type the product number into the "Order" column, I would like the customer column to automatically show me

to who it corresponds.

I have a list of my Customers and the product numbers that are always unique but totally random,

so I cannot base my selection or search on ranges. (say 100 to 200 is Customer A, 300 to 350 is Customer B - this I cannot do)
This list is kept on a separate sheet in the same excel file.

Every day I keep separate work-log (spreadsheet) of the products processed on that day. Product numbers I type in manually

and it would be very helpful to instantly see the Customer's name right next to it.

I did try "IF" and "VLOOKUP" functions, but I didn't work. I probably have made an error somewhere, but I can't find it.

Thank You in advance for help.

Microsoft 365 and Office | Excel | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes
Answer accepted by question author
  1. Ashish Mathur 100.9K Reputation points Volunteer Moderator
    2023-09-27T23:05:10+00:00

    Hi,

    In cell C2, enter this formula

    =TOROW(IF(List!$B$2:$F$6=Log!B2,List!$B$1:$F$1,NA()),3,TRUE)

    Hope this helps.

    1 person found this answer helpful.
    0 comments No comments

5 additional answers

Sort by: Most helpful
  1. Anonymous
    2023-09-27T20:23:44+00:00

    Dear respected Wojciech Cieslicki,

    Good day! Thank you for posting to Microsoft Community. We are happy to help you.

    I’m sorry you’re having a problem and for the situation you encountered, we deeply understand the inconvenience caused and apologize for it.

    As per your description, we may need more time to test it from our side, I request you, if possible, could you please allow me some time and I will update you here ASAP.

    Appreciate your patience and understanding and thank you for your time and cooperation.

    Sincerely,

    Waqas Muhammad

    0 comments No comments
  2. Anonymous
    2023-09-27T23:11:56+00:00

    =FILTER(List!$B$1:$F$1,BYCOL(List!$B$2:$F$6=Log!B2,LAMBDA(a,OR(a))))

    0 comments No comments
  3. Anonymous
    2023-09-28T16:24:58+00:00

    Thank You, Ashish - it worked!

    Much appreciated.

    0 comments No comments
  4. Anonymous
    2023-09-28T16:25:23+00:00

    Thank You very much for Your help.

    0 comments No comments