+ Reply to Thread
Results 1 to 3 of 3

Formual of conditional multiplication

  1. #1
    Forum Contributor
    Join Date
    12-13-2013
    Location
    Calgary,AB,Canada
    MS-Off Ver
    2016,O365
    Posts
    236

    Formual of conditional multiplication

    Source: A1:B5

    A1= 1 B1= 0
    A2= 2 B2= 0
    A3= 3 B3= 1
    A4= 4 B4= 0
    A5= 5 B5= 4

    Question:
    Looking for formula to multiply all value in A with 0 in B only
    Per example, it will be 1*2*4
    if I change the value in B5 to 0, it will be 1*2*4*5

    thanks
    Last edited by CAABYYC; 03-10-2016 at 03:24 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Formual of conditional multiplication

    This ARRAYED Formula will work
    =PRODUCT(IF(B1:B5=0, A1:A5))
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Questions?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Contributor
    Join Date
    12-13-2013
    Location
    Calgary,AB,Canada
    MS-Off Ver
    2016,O365
    Posts
    236

    Re: Formual of conditional multiplication

    Yes, it works, I need to go back to review the formula regarding math. thanks !

    Quote Originally Posted by ChemistB View Post
    This ARRAYED Formula will work
    =PRODUCT(IF(B1:B5=0, A1:A5))
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Questions?

+ 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. IF Formual
    By RichPee in forum Excel General
    Replies: 2
    Last Post: 02-01-2015, 08:04 AM
  2. [SOLVED] Formual returns 12 am when it should be 12 pm
    By nicolelschramartin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-09-2012, 10:11 PM
  3. I need a formual Please
    By 2nikki in forum Excel General
    Replies: 2
    Last Post: 05-31-2012, 06:07 PM
  4. if then else formual q
    By 3dognite in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-03-2011, 04:19 PM
  5. help with formual
    By dasher108 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-23-2008, 10:13 AM
  6. Formual vs Value
    By mpeplow in forum Excel General
    Replies: 1
    Last Post: 11-07-2006, 07:06 PM
  7. what is mean by ^ in formual
    By khan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-13-2005, 08:05 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