+ Reply to Thread
Results 1 to 5 of 5

Multiply based on criteria

  1. #1
    Registered User
    Join Date
    09-28-2022
    Location
    NY, USA
    MS-Off Ver
    MS Office Enterprise 365
    Posts
    25

    Multiply based on criteria

    Hi,

    I need to do a multiplication based on certain criteria.

    So in reference to the sample file; what I need is to get a multiplication outcome for column C(weight).
    The criteria is that column A(serial No.) should be checked for columnB(unit volume) greather than or equal to 1, any unit volume greater than 1 should be multiplied by the corresponding Serial No.(column A) and matching unit volume 1.

    For instance,
    cell C3 should be cell B3*C2
    cell C16 should be cell B16*C14.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    01-07-2022
    Location
    Europe
    MS-Off Ver
    Office 365
    Posts
    473

    Re: Multiply based on criteria

    Try this in cell D2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <<< If you have valued anyone's contributions in this thread, please click * to thank them for their efforts

  3. #3
    Registered User
    Join Date
    09-28-2022
    Location
    NY, USA
    MS-Off Ver
    MS Office Enterprise 365
    Posts
    25

    Re: Multiply based on criteria

    Hi

    Thank you this is what I was looking for.
    Could you please break down the formula if you don't mind, I'm trying to make it work it work with the actual file I have and I just can't seem to get it to work because I'm not sure how to refer the cells that I require using this formula.

  4. #4
    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. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,730

    Re: Multiply based on criteria

    If you interrogate the formula in the formula bar, you will see the cells and ranges highlighted. Anything with @ is a single cell refrence, without is a range. It resolves to this:

    =(B2>1)*B2*SUMIF($A$2:$A$25,A2,$C$2:$C$25)
    Attached Files Attached Files
    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.

  5. #5
    Registered User
    Join Date
    09-28-2022
    Location
    NY, USA
    MS-Off Ver
    MS Office Enterprise 365
    Posts
    25

    Re: Multiply based on criteria

    Thank you @AliGW for the clarification, it helped me a lot

+ 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 Value Based on Criteria
    By PassPass in forum Excel General
    Replies: 9
    Last Post: 12-14-2021, 10:03 AM
  2. [SOLVED] How to multiply a certain value based on the country criteria
    By D2S in forum Excel General
    Replies: 4
    Last Post: 11-01-2018, 08:25 PM
  3. [SOLVED] Multiply based on criteria
    By Imbizile in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-29-2015, 12:14 PM
  4. Multiply rows based on Multiple Criteria
    By chacha123 in forum Excel General
    Replies: 3
    Last Post: 02-12-2015, 09:09 AM
  5. Multiply based on multiple array criteria
    By jcullen in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-21-2012, 06:14 PM
  6. how do i multiply based on 2 column criteria?
    By gjjh25 in forum Excel General
    Replies: 3
    Last Post: 11-24-2011, 09:58 AM
  7. Replies: 1
    Last Post: 06-25-2010, 02:39 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