+ Reply to Thread
Results 1 to 8 of 8

lookup value and return other cells value help please

Hybrid View

  1. #1
    Registered User
    Join Date
    05-02-2024
    Location
    Belgium
    MS-Off Ver
    ms365
    Posts
    4

    lookup value and return other cells value help please

    Hi,

    I'm looking for some help, I've been trying many things for a couple days now (VLOOKUP, INDEX, MATCH) but cant find the right formula for me, or I'm doing something wrong....
    I'm have very basic excel knowledge but willing to learn. Can someone guide me in the right direction?

    In the tires sheet i have prices from a set of tires (Column A), based on that value I'm trying to add the Cat A & Cat B (Column C & D) from the price sheet ( Column E )
    ex. if the price in column A (tires) is 66.70 i want to add in column C & D the corresponding cat from Column A & B (tires).
    Anyone can help me in the right direction?

    Thanks, J

    Book1.xls

  2. #2
    Registered User
    Join Date
    05-02-2024
    Location
    Belgium
    MS-Off Ver
    ms365
    Posts
    4

    Re: lookup value and return other cells value help please

    I think i found a solution, if anyone has another option or some advice, would be appreciated.

    =INDEX(Price!A7:A231,MATCH(Tires!A3,Price!E7:E231,0))

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,508

    Re: lookup value and return other cells value help please

    And if most cases, there is not an exact match so what is required result?

    For EXACT match ..

    in C2 and drag to column D

    Formula: copy to clipboard
    =IFERROR(INDEX(Price!A$7:A$231,MATCH($A2,Price!$E$7:$E$231,0)),"")
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,852

    Re: lookup value and return other cells value help please

    To try to improve on things I used this formula in C7 of the Price sheet:

    =ROUND(SUM(C7,D7),2)

    (changes in red) to round all the prices to 2 decimal places). Then I used this formula in C2 of the Tires sheet:

    =IFERROR(INDEX(Price!A:A,MATCH(ROUND($A2,2),Price!$E:$E,0)),"")

    then copied into D2 and then copied both formulae down to row 116 - very little improvement.

    Do you want to use an inexact match? If so, would this be nearest (both above and below) or just below?

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    05-02-2024
    Location
    Belgium
    MS-Off Ver
    ms365
    Posts
    4

    Re: lookup value and return other cells value help please

    Thanks, I only need an exact match, any idea what I can do when there are multiple matches?

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,852

    Re: lookup value and return other cells value help please

    There needs to be some other criteria to be able to distinguish between the duplicates.

    There are 10 totals with a value of 2.94, and although the Cat.B values are all the same, the Cat.A values vary from Cat. 505 to Cat. 514. How would YOU choose the appropriate Cat.A value manually?

    Hope this helps.

    Pete

  7. #7
    Registered User
    Join Date
    05-02-2024
    Location
    Belgium
    MS-Off Ver
    ms365
    Posts
    4

    Re: lookup value and return other cells value help please

    Gone have to check with colleagues after the weekend, not sure about that
    thanks for your help, learned from it!

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,852

    Re: lookup value and return other cells value help please

    Glad to have helped, and thanks for marking the thread as Solved.

    As you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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] Lookup 2 different cells and return
    By pmw19800 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-14-2018, 04:31 AM
  2. [SOLVED] Return a value in a second table for more cells after a lookup value
    By adela in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-04-2013, 07:35 AM
  3. Lookup 2 cells to return a 3rd.
    By dips_007 in forum Excel General
    Replies: 2
    Last Post: 11-12-2012, 04:49 PM
  4. [SOLVED] lookup a value and return cells
    By Dwarf in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-25-2006, 10:35 PM
  5. How do I lookup two cells and return a third.
    By Damian in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-30-2005, 01:05 PM
  6. lookup and return range of cells
    By Duke Carey in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 02:05 PM
  7. [SOLVED] lookup and return range of cells
    By Duke Carey in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 04:05 AM

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