+ Reply to Thread
Results 1 to 4 of 4

lookup a value base on a range

  1. #1
    Forum Contributor
    Join Date
    02-18-2014
    Location
    hk
    MS-Off Ver
    Excel 365
    Posts
    105

    lookup a value base on a range

    Hi Friend,

    I have a table like that

    product price
    A123 10
    A2456 5
    B12 10
    D5 5
    C* 8 <- "C*" represent all product with the product code start with "C"

    I can use vlookup to search the price of A123,A2456.
    but if I want to search "C123","C456", how can I get the result is 8?

    Thanks.

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: lookup a value base on a range

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


    (adjust ranges to suit)
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Contributor
    Join Date
    02-18-2014
    Location
    hk
    MS-Off Ver
    Excel 365
    Posts
    105

    Re: lookup a value base on a range

    Thanks for your help.
    but it seem the formula is designed with a specific case.
    if I also want to add the table with "XC*" with price "10", I only can add more
    "iferror" in the formula.

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: lookup a value base on a range

    Okay, so try this, entered as an ARRAY formula (Ctrl-Shift-Enter):
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Lookup/ Return a value within date range base on criteria
    By kelkelkel08 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 01-16-2014, 05:10 AM
  2. Variable range SUM , base range on other column blank cells?
    By stevnb in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-20-2012, 10:55 AM
  3. [SOLVED] How to create Pdf filename base on ws Range.Value
    By tuongtu3 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-10-2012, 11:28 PM
  4. Select range base on another Column
    By Jerseynjphillypa in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-31-2012, 03:41 AM
  5. Counting cells base on a predetermined range
    By [email protected] in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-16-2005, 03:45 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