+ Reply to Thread
Results 1 to 4 of 4

Formula to multiply value in one column by amount dependent on value from another column

  1. #1
    Registered User
    Join Date
    02-22-2013
    Location
    IN
    MS-Off Ver
    Excel 2010
    Posts
    38

    Formula to multiply value in one column by amount dependent on value from another column

    I have a spreadsheet w/ a PRICE column, a CODE column, and a DIFFERENCE column. I'd like to have a formula in the DIFFERENCE column that will multiply the PRICE value, and return a value in the DIFFERENCE column, based off of the value entered in the CODE column. For example...If I were to enter a P in the CODE column, I want the DIFFERENCE formula to return a value that is (PRICE*.18). If I were to enter a G, I want the DIFFERENCE formula to return a value that is (PRICE*.33). If I were to enter an O, I want the DIFFERENCE formula to return a value that is (PRICE*0). Obviously the part for the PRICE*0 could skip the multiplication action and just enter a zero if that's a more efficient way.

    I was thinking it could be something like this...

    =IF(B2=O,0,IF(B2=G,A2*.33,IF(B2=P,A2*0.18)))

    or this...

    =IF(B2=O,A2*0,IF(B2=G,A2*.33,IF(B2=P,A2*0.18)))

    but...neither seem to work. I had a dummy spreadsheet to attach but not sure how to do that either...

    Thanks in advance

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,139

    Re: Formula to multiply value in one column by amount dependent on value from another colu

    Try:

    =IF(B2="O",0,IF(B2="G",A2*.33,IF(B2="P",A2*0.18)))

    failing that...

    Please attach a sample workbook. Make sure there is enough data to demonstrate your need. Make sure your desired results are shown, mock them up manually if necessary. Remember to remove ALL confidential information first!!!

    However, nothing on this Forum works quite as well as you might expect. The attachment icon doesn't work!! (Helpful, isn't it!!). Instead, just before you submit your post, click on GO ADVANCED (near the bottom) and then scroll down to Manage Attachments to open the upload window. The relevant instructions are at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    02-22-2013
    Location
    IN
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Formula to multiply value in one column by amount dependent on value from another colu

    That'll do it...thanks!

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,139

    Re: Formula to multiply value in one column by amount dependent on value from another colu

    Glad to have 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. Multiply multiples of columbs by a set column amount
    By d3ell in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-18-2016, 04:05 AM
  2. [SOLVED] Formula to multiply column with a dynamic column
    By keis386 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-20-2015, 09:05 AM
  3. [SOLVED] Need a formula to multiply an amount and the difference over a set value
    By AndrewBondarchuk in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-28-2012, 03:59 PM
  4. Replies: 5
    Last Post: 06-10-2010, 09:45 AM
  5. Replies: 8
    Last Post: 08-06-2009, 09:02 AM
  6. Need help with a Multiply Dependent One Cell Formula
    By derekblain in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-08-2006, 05:35 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