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

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
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,213,487
Messages
6,113,937
Members
448,534
Latest member
benefuexx

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