+ Reply to Thread
Results 1 to 4 of 4

Getting Excel to Auto-populate a price in a cell, based on text in another cell

  1. #1
    Registered User
    Join Date
    12-05-2019
    Location
    Ontario, Canada
    MS-Off Ver
    1902
    Posts
    2

    Getting Excel to Auto-populate a price in a cell, based on text in another cell

    I have an Excel file for tracking purchase orders. I created a drop-down list in Cell D so I can pick the item that is being ordered (Description). Is there any way to have the next cell (Unit Price) auto-populate with the price that goes with that description?

    So if I put:

    "Foam Core White Single" in cell D1, Cell H1 will automatically populate with "$28" but if I put "Foam Core White Box" it will automatically populate with a different amount.

    I tried using IF statements but they don't seem to work. I might be making a mistake in the formula but I also think there might be too much wording. Is what I'm trying to do possible? It would be very helpful to have it auto-populate instead of going back to look at the price sheet constantly.

  2. #2
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: Getting Excel to Auto-populate a price in a cell, based on text in another cell

    IF function is not suitable for price lookups as you need to handle every available item. Best option is to have a table with items description and prices and then use VLOOKUP or combo of INDEX and MATCH functions.

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


    But to give you better help it would be useful to have an example file, please loop at the yellow banner at the top of the screen how to create and upload an example file. .

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,890

    Re: Getting Excel to Auto-populate a price in a cell, based on text in another cell

    You will need to have a list of all products and costs. Then you can use Vlookup or Index/Match functions to populate your Column H Based upon Column D. To understand each of these functions, look at these links.

    https://www.techonthenet.com/excel/formulas/vlookup.php

    https://www.deskbright.com/excel/using-index-match/
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    12-05-2019
    Location
    Ontario, Canada
    MS-Off Ver
    1902
    Posts
    2

    Re: Getting Excel to Auto-populate a price in a cell, based on text in another cell

    Thank you both! I will try this I'd rather not upload the file as it's a document for work. I'll watch the tutorials and figure this stuff out, I'm just glad I have a direction to go now!

+ 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. Looking to auto populate a table based on specific cell text
    By ghansonp in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-05-2016, 04:29 PM
  2. Replies: 3
    Last Post: 04-29-2014, 03:03 PM
  3. [SOLVED] How to auto populate multiple Text Boxes from list based on value of a cell
    By MooseAUH in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-04-2014, 03:40 AM
  4. Auto Populate cell based on Drop Down list in another cell (VLookup)
    By alialmoore in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-27-2013, 04:07 PM
  5. Replies: 2
    Last Post: 11-29-2012, 11:27 AM
  6. Replies: 1
    Last Post: 05-06-2010, 03:09 AM
  7. Macro to auto populate the destination cell based on the values of the previous cell
    By Avinash Kumar in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-05-2009, 02:06 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