+ Reply to Thread
Results 1 to 4 of 4

IF value matches, calculate ??

  1. #1
    Registered User
    Join Date
    04-15-2013
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    15

    Question IF value matches, calculate ??

    Hi!

    I'm creating a system for calculating prices.
    I need a function which calculates the price, according to which item is bought, and how many.
    Items are chosen from a list which I have created.

    Column A = Items
    Column B = Prices

    D2 = Item (chosen from list)
    E2 = How many
    F2 = Price

    Let's say one item is (chosen from list in Column A) "Teddybear". The price is 12,99$.

    I want to calculate the total sum, respective to the chosen item.

    So if D2 = Teddybear, take price of teddybear (defined in the cell next to item), times the amount.

    Tried to explain in picture :-D

    Untitled.jpg

    regards,

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: IF value matches, calculate ??

    Nice picture but can you upload a sample worksheet?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: IF value matches, calculate ??

    Try this formula in cell F2

    =VLOOKUP(D2,A:B,2,FALSE)*E2
    If I've been of help, please hit the star

  4. #4
    Registered User
    Join Date
    04-15-2013
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: IF value matches, calculate ??

    Quote Originally Posted by Spencer101 View Post
    Try this formula in cell F2

    =VLOOKUP(D2,A:B,2,FALSE)*E2
    You sir, are a genious.
    Worked like a charm!
    Thanks alot!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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