+ Reply to Thread
Results 1 to 5 of 5

Multiplying 2 Cells if another cell meets criteria

  1. #1
    Registered User
    Join Date
    09-09-2015
    Location
    Norway
    MS-Off Ver
    Office 2013
    Posts
    11

    Multiplying 2 Cells if another cell meets criteria

    Hi,
    I want the cell A to be multiplied with cell B when cell C shows 1 (eg 1.46*1=1.46), but when cell C shows zero I want it to show -B (-1). Is there any easy way to make this happen?

    English isn't my first language, so i hope this made any sense

    a9p83l.jpg

  2. #2
    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,209

    Re: Multiplying 2 Cells if another cell meets criteria

    =IF(C1=1,A1*B1,-B1) assuming C1 is either 1 or 0

    or

    =IF(C1,A1*B1,-B1)
    Last edited by JohnTopley; 09-13-2015 at 04:52 PM.

  3. #3
    Registered User
    Join Date
    09-09-2015
    Location
    Norway
    MS-Off Ver
    Office 2013
    Posts
    11

    Re: Multiplying 2 Cells if another cell meets criteria

    Thanks for a fast answer, probably bad explaining but I want that if C is 0 then ill get what stand at B as a negative number. If I use your forumla i'll get 0 when C is 0. I want the negative number of B.
    This is accounting/investing, when there is 1 at C ill have A(return) on B(invested). While when there is 0 at C ill have no return on the investment and will have -B(Invested) In my example -1.

  4. #4
    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,209

    Re: Multiplying 2 Cells if another cell meets criteria

    No you will not: try it

    You cannot put the formula in C (circular reference)

    in D1 ..... =IF(C1=1,A1*B1,-B1)

    A1=3
    B1=2
    C1=1
    D1=6


    C1=0
    D1=-2
    Last edited by JohnTopley; 09-14-2015 at 03:50 AM.

  5. #5
    Registered User
    Join Date
    09-09-2015
    Location
    Norway
    MS-Off Ver
    Office 2013
    Posts
    11

    Re: Multiplying 2 Cells if another cell meets criteria

    Sorry for the confusion.. I must have miss typed or something, thanks for the help and clarification!

+ 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. Replies: 4
    Last Post: 02-17-2014, 04:05 AM
  2. Replies: 2
    Last Post: 07-26-2013, 10:35 AM
  3. Sum Up Cells Until Adjacent Cell Meets Criteria
    By cocostar88 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-27-2013, 02:41 PM
  4. [SOLVED] Copy and paste cells data once another cells value meets a certain criteria
    By gally in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-29-2012, 05:03 AM
  5. Need VB code that would SUM cells if meets criteria
    By goyex in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-10-2012, 09:37 PM
  6. highlight selection cell that meets criteria and multiple cells if not
    By rona_ele in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-30-2011, 09:17 AM
  7. Sum Cells if Another Cell Meets Criteria and Stop When Count is Met
    By obatiz in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 01-15-2009, 09:13 AM
  8. If a cell meets criteria, sum cells on that row
    By add1023 in forum Excel General
    Replies: 1
    Last Post: 03-16-2005, 11:40 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