+ Reply to Thread
Results 1 to 18 of 18

Formula to populate product ID & price from lookup list

  1. #1
    Registered User
    Join Date
    03-19-2019
    Location
    Cumbria
    MS-Off Ver
    Office 365
    Posts
    10

    Formula to populate product ID & price from lookup list

    Hi

    I am looking for help with the following

    Attachment 740933

    The task is to use a index & match formula in B12 that populates from the Product id that i can then drag down and across to also populate pack price.

    Regards

    BS
    Attached Files Attached Files
    Last edited by bs1977; 07-19-2021 at 10:30 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: Index & match formula help

    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,413

    Re: Formula to populate product ID & price from lookup list

    Administrative Note:

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. As you are inexperienced here, is have done it for you today.)
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    03-19-2019
    Location
    Cumbria
    MS-Off Ver
    Office 365
    Posts
    10

    Re: Formula to populate product ID & price from lookup list

    Thank you for amending the title.

    I need to use the INDEX/MATCH formula to do this that is why it was mentioned how it was to be done. Sorry for any confusion

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

    Re: Formula to populate product ID & price from lookup list

    Your title was generic, nonetheless, with no hint at what you were trying to do. I hope you can see the difference.

    Why must it be INDEX MATCH? What if there’s a more efficient alternative? Very often people come here with an idea of how they think something should be done, but end up with something quite different. Are you saying that you will dismiss any solution that does not contain INDEX MATCH?

  6. #6
    Registered User
    Join Date
    03-19-2019
    Location
    Cumbria
    MS-Off Ver
    Office 365
    Posts
    10

    Re: Formula to populate product ID & price from lookup list

    This is the question. It isnt the way i would normally do it but this is the way they ask.

    7) Create an INDEX & MATCH function to automatically fill the Invoice Generator entries for “Product Name and “Pack Price”.

    The specific requirement is that in cell B12 you enter a function that is structured so that it can be entered just once and then copied to fill down and across to return the correct details for each order item.
    Check the results against the list above to make sure the correct details have been found.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,413

    Re: Formula to populate product ID & price from lookup list

    That’s interesting.

    So, is this some form of homework? And if so, what have you tried so far?

    The problem with wanting to drag across and down is the lookup table: for this to work easily you’d need the product ID in the left-most column. It’s easy to do if the fromulae for product name and price are separate and just drag copied down.

  8. #8
    Registered User
    Join Date
    03-19-2019
    Location
    Cumbria
    MS-Off Ver
    Office 365
    Posts
    10

    Re: Formula to populate product ID & price from lookup list

    I am trying to help a friend. They are resitting this test and it just didnt make sense to me as it was.

    I figured if i moved the PRODUCT ID column to the left this would work in a fashion.

    =INDEX(K6:K25,MATCH(A12,J6:J25,0))

    The problem is with the K6:K25 then becomes K7:K26 etc in the Product name column when i drag it down so when i drag accross to the Pack price column again it isnt absolute.

    When i make it absolute and drag across it then obviously repeats the product name in the product price column.

    I have got nowhere without moving the Product ID column in the lookup table

    Thanks

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,413

    Re: Formula to populate product ID & price from lookup list

    If you use move product ID you can use INDEX MATCH MATCH to match up the rows AND the columns. However, with the product ID column BETWEEN the two others, there is no easy way to do what you are being asked to do. What sort of level is this aiming at? I ask because making it work to drag across and down would require a bit of advanced wizardry.

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

    Re: Formula to populate product ID & price from lookup list

    Actually, no - on reflection, INDEX MATCH MATCH should work.

  11. #11
    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,313

    Re: Formula to populate product ID & price from lookup list

    Product name

    =INDEX($I$6:$K$25,MATCH($A12,$J$6:$J$25,0),1)

    Price

    =INDEX($I$6:$K$25,MATCH($A12,$J$6:$J$25,0),3)

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,413

    Re: Formula to populate product ID & price from lookup list

    Try this in B12 and copy across and down:

    =INDEX($J$6:$L$25,MATCH($A12,$K$6:$K$25,0),MATCH(B$11,$J$5:$L$5,0))

  13. #13
    Registered User
    Join Date
    03-19-2019
    Location
    Cumbria
    MS-Off Ver
    Office 365
    Posts
    10

    Re: Formula to populate product ID & price from lookup list

    It is an accountancy degree.

  14. #14
    Registered User
    Join Date
    03-19-2019
    Location
    Cumbria
    MS-Off Ver
    Office 365
    Posts
    10

    Re: Formula to populate product ID & price from lookup list

    I tried that earlier. Comes Up as #N/A
    Theres actually nothing in their coursework that covers it. I thought it strange.

  15. #15
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,473

    Re: Formula to populate product ID & price from lookup list

    365

    Cell B12 formula , drag down
    HTML Code: 

  16. #16
    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,313

    Re: Formula to populate product ID & price from lookup list

    Ali's formula works.

  17. #17
    Registered User
    Join Date
    03-19-2019
    Location
    Cumbria
    MS-Off Ver
    Office 365
    Posts
    10

    Re: Formula to populate product ID & price from lookup list

    Thats strange. I have created the sheet again and it works.

    Thanks for your help

    BS

  18. #18
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,413

    Re: Formula to populate product ID & price from lookup list

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon 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 those who helped.

+ 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] Index Match not cycling through entire index. Formula not updating when values change...
    By nordxnortheast in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-07-2020, 10:44 AM
  2. Replies: 1
    Last Post: 08-17-2019, 01:11 PM
  3. Index Match formula changing my Index daily
    By vitt4300 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-31-2017, 02:19 PM
  4. [SOLVED] This formula works but I don´t understand why Index(Index) match
    By campelliann in forum Excel General
    Replies: 2
    Last Post: 01-25-2016, 05:55 PM
  5. Replies: 3
    Last Post: 05-02-2013, 01:31 AM
  6. Index Match Index Formula work slow
    By avk in forum Excel General
    Replies: 9
    Last Post: 03-07-2012, 02:19 PM
  7. Replies: 5
    Last Post: 02-29-2012, 08:51 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