+ Reply to Thread
Results 1 to 10 of 10

multiply column values based on multiple criteria

  1. #1
    Registered User
    Join Date
    08-06-2016
    Location
    helsinki
    MS-Off Ver
    2010
    Posts
    37

    multiply column values based on multiple criteria

    Hello,

    I am wondering how can I to multiply values in column B based on some criteria in Column A. For example: I would like to multiply values in Column B (x1.5) in case of cell values in A are y, gb, r and u. if the value in A is a number keep the same value in B and finally if it is zz and c in column A, multiply B by 2.
    Thank you for your guidance. Please see the attached file.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,088

    Re: multiply column values based on multiple criteria

    Just to be clear, when is asked
    "to multiply values in Column B (x1.5) in case of cell values in A are y, gb, r and u. if the value in A is a number keep the same value in B and finally if it is zz and c in column A, multiply B by 2."
    it means the result is in column C ...!

    What about when there is in column A
    x
    t
    r28
    c
    Last edited by PCI; 08-15-2016 at 01:38 PM.
    - Battle without fear gives no glory - Just try

  3. #3
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: multiply column values based on multiple criteria

    result in same column or new ?

    Kind regards
    Leo

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,088

    Re: multiply column values based on multiple criteria

    If previous comments are solved try
    C2 =IF(ISNUMBER(A2),1,VLOOKUP(A2,$H$2:$I$6,2))*B2

    fill H2;I6 with
    zz 2
    y 1.5
    u 1.5
    r 1.5
    gb 1.5

  5. #5
    Registered User
    Join Date
    08-06-2016
    Location
    helsinki
    MS-Off Ver
    2010
    Posts
    37

    Re: multiply column values based on multiple criteria

    Salut PCI,

    I would like to get the results in the same column if it is possible of course, otherwise column C is ok.


    Merci d'avance.

    Thank you so much.

    Yukiko

  6. #6
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,088

    Re: multiply column values based on multiple criteria

    If you want the result in column "B", it means you want to modify column "B" , then a macro is needed.

    What about when there is in column A
    x
    t
    r28
    c

  7. #7
    Registered User
    Join Date
    08-06-2016
    Location
    helsinki
    MS-Off Ver
    2010
    Posts
    37

    Re: multiply column values based on multiple criteria

    Salut PCI,

    Thank you for your reply. I would like to do this using a Macro. In case the following values are found in column A: x,t,r28 and c, then divide by 2.

    Merci pour ton soutien.

    Yukiko.

  8. #8
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: multiply column values based on multiple criteria

    Maybe with this

    Please Login or Register  to view this content.
    Kind regards
    Leo
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,088

    Re: multiply column values based on multiple criteria

    See next code
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    08-06-2016
    Location
    helsinki
    MS-Off Ver
    2010
    Posts
    37

    Re: multiply column values based on multiple criteria

    it works perfectly thank you so much. Thread marked as solved (y)

+ 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 rows based on Multiple Criteria
    By chacha123 in forum Excel General
    Replies: 3
    Last Post: 02-12-2015, 09:09 AM
  2. Sum column and count distinct values in another based on multiple criteria
    By mike.greene in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-12-2015, 11:50 AM
  3. [SOLVED] Formula to Sum Values from a Column Based on Multiple Criteria
    By MaxwellR in forum Excel General
    Replies: 12
    Last Post: 11-29-2013, 03:53 PM
  4. Summing Values in column based upon multiple criteria
    By shantanuk in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-21-2012, 09:29 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. How to delete multiple values in a column based on Criteria
    By ravi3cha in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-03-2010, 07:00 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