Sum True/False to return Revenue

McNeil87

Board Regular
Joined
Dec 6, 2019
Messages
55
Office Version
  1. 2016
Platform
  1. Windows
  2. MacOS
Hello,

Am trying to create a formula that sums specific columns that return 'true' or 'false.' I'd like to return the revenue from that.

Here is what I am using, but it's not quite working:

=IF(OR[(X2,Y2,Z2)]="TRUE"),1,0*W2 (W2 is revenue).

Also tried this as a test, which worked but not sure how to return the revenue from W2:
=SUM(IF[(X2,Y2,Z2)],1,0)) -- this will return the number of 'Trues' but how can i ensure it pulls the revenue from W2?

Thanks!
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
what language version of excel are you using? I'm not familiar with the square bracket syntax.
Do you have columns of data you are doing this for?

Also, I don't think you need "TRUE" in quotes, just TRUE should work.
And I think you are missing a parenthesis after the 0.

Excel Formula:
=IF(OR[(X2,Y2,Z2)]=TRUE,1,0)*W2
 
Upvote 0
what language version of excel are you using? I'm not familiar with the square bracket syntax.
Do you have columns of data you are doing this for?

Also, I don't think you need "TRUE" in quotes, just TRUE should work.
And I think you are missing a parenthesis after the 0.
I am using windows 10. Apologies, i had dragged my True/False columns and that created the brackets
=IF(OR(Transactions[@[Exc SPs]:[Exc RT]]="TRUE"),1,0)*$W2
 
Upvote 0
maybe
=SUMIF(X1:X11, TRUE,W1:W11)+SUMIF(Y1:Y11, TRUE,W1:W11)+SUMIF(Z1:Z11, TRUE,W1:W11)
Book2
WXYZAAABAC
11
2229
33
44
55TRUE
66TRUE
77
88TRUE
99
1010TRUE
1111
Sheet1
Cell Formulas
RangeFormula
AC2AC2=SUMIF(X1:X11, TRUE,W1:W11)+SUMIF(Y1:Y11, TRUE,W1:W11)+SUMIF(Z1:Z11, TRUE,W1:W11)


OR
=SUMPRODUCT((W1:W11)*(X1:Z11=TRUE))

Book2
UVWXYZAAABACADAEAF
11
222929
33
44
55TRUE
66TRUE
77
88TRUE
99
1010TRUE
1111
12
Sheet1
Cell Formulas
RangeFormula
AC2AC2=SUMIF(X1:X11, TRUE,W1:W11)+SUMIF(Y1:Y11, TRUE,W1:W11)+SUMIF(Z1:Z11, TRUE,W1:W11)
AE2AE2=SUMPRODUCT((W1:W11)*(X1:Z11=TRUE))
 
Upvote 0
try:
Excel Formula:
=IF(OR(Transactions[@[Exc SPs]:[Exc RT]])=TRUE,1,0)*$W2
 
Upvote 0
Solution
try:
Excel Formula:
=IF(OR(Transactions[@[Exc SPs]:[Exc RT]])=TRUE,1,0)*$W2
technically, you don't even need to use the =TRUE part of the formula, since the OR function itself returns the TRUE/FALSE value needed for the IF Function.
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,918
Members
449,093
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top