I need to count one or the other cell as One

beekerdale

New Member
Joined
Oct 7, 2019
Messages
9
If anyone could help me with this formula I would be super grateful.. Thanks in advance.

This formula below works fine with the exception that I now require the formula to only count “one” if there is two inputs on each cell of the nine pairs (“W128 & W129” is what I call a pair for example)


Common sense would tell me to put a “or” between the W128&W129, N128&N129, G128&G129, AF117&AF118, Y117&Y118, P117&P118, I117&I118, AI106&AI107, AB106&AB107


I need each of these pairs to be seen as as a result of One of the “five”
So each pair should only count once, not twice like they currently do.

Here is my current formula:
=IF(COUNT(W128,W129,N128,N129,G128,G129,AF117,AF118,Y117,Y118,P117,P118,I117,I118,AI106,AI107,AB106,AB107)>=5,round(SUM(T128:AC129,C128:Q129,AF117:AH118)*0.05,2),"")
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Welcome to the MrExcel board!
Try
Code:
=IF((COUNT(W128:W129)>0)+(COUNT(N128:N129)>0)+(COUNT(G128:G129)>0)+(COUNT(AF117:AF118)>0)+(COUNT(Y117:Y118)>0)+(COUNT(P117:P118)>0)+(COUNT(I117:I118)>0)+(COUNT(AI106:AI107)>0)+(COUNT(AB106:AB107)>0)>=5,
ROUND(SUM(T128:AC129,C128:Q129,AF117:AH118)*0.05,2),"")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,431
Members
448,961
Latest member
nzskater

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