+ Reply to Thread
Results 1 to 13 of 13

Need Help with formula for PRODUCTS and PRICES ,proberly really basic but im new to this!

  1. #1
    Registered User
    Join Date
    07-20-2015
    Location
    australia
    MS-Off Ver
    windows 8
    Posts
    6

    Smile Need Help with formula for PRODUCTS and PRICES ,proberly really basic but im new to this!

    Hi i need help with an excel formula im trying to make a basic spreadsheet so i can keep track of products i sell. I want to be able to select a product from the dropdown box and for the price of the product to appear in the price column. I have saved the products and their prices on the next spreadsheet page as a basic database, but i am unable to be able to find a formula i need to make the prices appear ones the product is selected.

    Currently i am using the formula: =IFERROR(LOOKUP(J7,productdata),”Select Product”)

    but it is only bringing up one price for one product. But if i select any other product that someone has bought it comes back with the error #NAME?


    Please help i am new to this

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: Need Help with formula for PRODUCTS and PRICES ,proberly really basic but im new to th

    You will need a simple Vlookup.

    Please see the file attached.

    See the formula in the selected cell
    Attached Files Attached Files
    Cheers!
    Deep Dave

  3. #3
    Registered User
    Join Date
    07-20-2015
    Location
    australia
    MS-Off Ver
    windows 8
    Posts
    6

    Re: Need Help with formula for PRODUCTS and PRICES ,proberly really basic but im new to th

    Now that i have the formula that works: =VLOOKUP(J12,Products!$C$3:$D$500000,2,0) i edited the letters to match my columns. I just need to know how to keep the cell Blank if no product is selected, is there a formula i should include in the previous formula that was given? As if i copy the formula to the rest of the column it will come up with the error #N/A if no product is selected from column J. All i want to do is keep it blank if no product is selected.

    Thanks for your help

  4. #4
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Need Help with formula for PRODUCTS and PRICES ,proberly really basic but im new to th

    Hi,

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


    Regards,
    Aardigspook

    If your problem is solved, please go to 'Thread Tools' on your first post and 'Mark Thread as Solved'.
    You don't need to give me rep if I helped, but thanks are appreciated.

  5. #5
    Registered User
    Join Date
    07-20-2015
    Location
    australia
    MS-Off Ver
    windows 8
    Posts
    6

    Smile Re: Need Help with formula for PRODUCTS and PRICES ,proberly really basic but im new to th

    YESSSSSSS IT WORKED!!!! You guys are awesome... thanks sooo much

  6. #6
    Registered User
    Join Date
    07-20-2015
    Location
    australia
    MS-Off Ver
    windows 8
    Posts
    6

    Re: Need Help with formula for PRODUCTS and PRICES ,proberly really basic but im new to th

    OK I Spoke too soon something happened, the formula worked to make the cell blank but then when i selected the product again the price didnt come up anymore?

    And, another thing how do i copy the formula all the way down the column, and for it to pick up the cell number of that cell for example:
    =IF(ISBLANK(J7),"",VLOOKUP(J7,Products!$C$3:$D$500000,2,0))
    and
    =IF(ISBLANK(J78),"",VLOOKUP(J8,Products!$C$3:$D$500000,2,0))

    and not just copy the same formula of =IF(ISBLANK(J7),"",VLOOKUP(J7,Products!$C$3:$D$500000,2,0))

    thanks guys

  7. #7
    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
    30,671

    Re: Need Help with formula for PRODUCTS and PRICES ,proberly really basic but im new to th

    Please post sample file showing problem and expected results.

  8. #8
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Need Help with formula for PRODUCTS and PRICES ,proberly really basic but im new to th

    Try pressing F9 after selecting a product. If the price then comes up, you've somehow got automatic calculation turned off. To turn it back on, go to the File tab, select Options (at the bottom), scroll down to the Calculation options section and select 'Automatic'.

    To copy the formula all the way down, first select J7. The cell will get a box around it to show it's selected, with a little square box at the bottom-right. Left-click and hold this, then drag it down the column as far as you need it to go.

    Hope that helps.
    (and that I'm not telling you something obvious you already knew!)

    Regards,
    Aardigspook

    If your problem is solved, please go to 'Thread Tools' on your first post and 'Mark Thread as Solved'.
    You don't need to give me rep if I helped, but thanks are appreciated.

  9. #9
    Registered User
    Join Date
    07-20-2015
    Location
    australia
    MS-Off Ver
    windows 8
    Posts
    6

    Re: Need Help with formula for PRODUCTS and PRICES ,proberly really basic but im new to th

    I have attached the sample spreadsheet that im having issues with. Unfortuantly its not the 'F9' issue. So what i need is when i select a product (which are saved in the database on the next page in a table) that the cost of the product appears (i need the formula to work in that whole column) in this spreadsheet the products can be selected in the drop down box in the J column, when a product is selected the price of the product should appear. I also need the cells under 'Cost' in the N colomn to appear blank unless a product has been selected, as if i have copied the formula like i need down the column i am going to need those cells blank until i select a product. Right now if a cell is blank in the J column and i have the formula copied to that cell like in n12 it will show an error of #N/A instead of a blank cell.

    I also need it to take the 'Quantity' into consideration. so it will take the price of the product that was selected in the J column and times it by the quantity, and have the price appear in the Cost 'N' column.

    Thanks guys

    (p.s this probably shows how new i am to this)


    Attached Files Attached Files

  10. #10
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Need Help with formula for PRODUCTS and PRICES ,proberly really basic but im new to th

    I'll have to look at this at home tonight, as I'm on 2003 at work and the file doesn't convert fully. Hopefully someone else can jump in and solve this before then, but if not, I'll get back to you.

    Regards,
    Aardigspook

    If your problem is solved, please go to 'Thread Tools' on your first post and 'Mark Thread as Solved'.
    You don't need to give me rep if I helped, but thanks are appreciated.

  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
    30,671

    Re: Need Help with formula for PRODUCTS and PRICES ,proberly really basic but im new to th

    See attached ....
    Attached Files Attached Files

  12. #12
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Need Help with formula for PRODUCTS and PRICES ,proberly really basic but im new to th

    File from #11 looks fine to me - does it work for you? If so, glad we (together) could help.

    Regards,
    Aardigspook

    If your problem is solved, please go to 'Thread Tools' on your first post and 'Mark Thread as Solved'.
    You don't need to give me rep if I helped, but thanks are appreciated.

  13. #13
    Registered User
    Join Date
    07-20-2015
    Location
    australia
    MS-Off Ver
    windows 8
    Posts
    6

    Re: Need Help with formula for PRODUCTS and PRICES ,proberly really basic but im new to th

    Thanks alot to everyone that helped out. I took the sample that was created by JohnTopley and used that saving me from trying to copy the code.
    All you guys a great, very much appreciated!


+ 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. Determining prices for products based on competition
    By rajivs27 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-31-2014, 12:50 PM
  2. Formula to work out how many products among various products!
    By MissConfussed in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-02-2013, 02:24 PM
  3. [SOLVED] Extracting latest prices from a price book with past and present prices
    By benoj2005 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-10-2012, 04:08 AM
  4. Average prices for products throughout time
    By josepablocam in forum Excel General
    Replies: 4
    Last Post: 07-26-2010, 07:57 AM
  5. Sum products prices that are between two dates
    By Maddoktor in forum Excel General
    Replies: 1
    Last Post: 02-03-2006, 07:40 AM
  6. Replies: 2
    Last Post: 12-02-2005, 03:50 PM
  7. Use a multiplier to change List Prices to Net prices
    By Dangada in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 12:05 PM

Tags for this Thread

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