+ Reply to Thread
Results 1 to 8 of 8

Formula that multiplies value of one column based of value of other column

  1. #1
    Registered User
    Join Date
    05-28-2021
    Location
    Europe
    MS-Off Ver
    MS365
    Posts
    3

    Formula that multiplies value of one column based of value of other column

    Hey peoples,

    I have a question on how to make a formula that multiplies a value in a column based of a value in a different column. Let's take this data:

    1 20
    1 20
    2 10
    3 0
    4 2
    4 0
    3 10

    Left column are categories and right is scoring value. I want the scoring value to be multiplied based on their categories. The multipliers are as follows:
    1 5x
    2 1.5x
    3 1.0x
    4 0x

    I have multiple columns of values and 1 column of categories. I want a total so a sum at the bottom of each column.
    How do I make this formula?

    The wanted result would be:
    1 20
    1 20
    2 10
    3 0
    4 2
    4 0
    3 10
    total 225
    Attached Files Attached Files
    Last edited by excelboi123; 05-28-2021 at 04:35 AM.

  2. #2
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,800

    Re: Formula that multiplies value of one column based of value of other column

    Welcome to the forum.

    Please update your forum profile with the correct version (MS365 - what you have given is merely a release number).

    Various ways ...

    There are instructions at the top of the page explaining how to attach your sample workbook.
    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.

  3. #3
    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,196

    Re: Formula that multiplies value of one column based of value of other column

    Should the vale for 1 not be 100 (20 x 5)?

    Use a LOOKUP table.

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

  4. #4
    Registered User
    Join Date
    05-28-2021
    Location
    Europe
    MS-Off Ver
    MS365
    Posts
    3

    Re: Formula that multiplies value of one column based of value of other column

    No I want the multiplication only to happen in the total. the values are a score given and the categories 1 2 3 4 are a ranking so rank 1 is more important then rank 4, so to properly score rank 1 should matter more.

  5. #5
    Registered User
    Join Date
    05-28-2021
    Location
    Europe
    MS-Off Ver
    MS365
    Posts
    3

    Re: Formula that multiplies value of one column based of value of other column

    Should have a simple example attached now of what i'd want.

  6. #6
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Formula that multiplies value of one column based of value of other column

    =SUMPRODUCT((VLOOKUP(A2:A9,{1,5;2,1.5;3,1;4,0},2)*(B2:B9)))

    although you did not explain why in your example

  7. #7
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: Formula that multiplies value of one column based of value of other column

    B10=IF(B$2<>"",SUM(INDEX($I$2:$I$5,N(IF(1,MATCH($A$2:$A$9,$H$2:$H$5,0))))*(B2:B9)),"")

    Control+shif+enter

    copy across
    Attached Files Attached Files

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

    Re: Formula that multiplies value of one column based of value of other column

    B10 cell formula , then copy drag right

    HTML Code: 

+ 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. Auto-adjust # of rows in a column that have a formula based on adjacent column data?
    By Norcal1 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 3
    Last Post: 05-31-2018, 02:03 PM
  2. Replies: 5
    Last Post: 02-05-2017, 05:51 PM
  3. Replies: 3
    Last Post: 03-24-2015, 11:24 AM
  4. Adding a formula column based on the pivot table's Grand Total column
    By trisoldee in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-26-2014, 05:29 PM
  5. VBA Multiplication of Two Columns
    By lesoies in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-06-2012, 02:05 PM
  6. Replies: 5
    Last Post: 09-24-2012, 05:14 PM
  7. Formula/macro to edit cells in one column based on contents of a cell in another column
    By robbyvegas in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-25-2012, 06:10 AM

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