Needing Help With a Formula

Sooner4Life

New Member
Joined
Mar 12, 2014
Messages
16
Hello,

I'm needing help figuring out a way to tweak a formula that I use on a spreadsheet at work. I use the formula below to track active unique projects and it works fine as long as my only criteria is not counting blanks..

=SUM(IF(FREQUENCY(IF(ISNUMBER(1/Borger!T3:T5000),IF(Borger!P3:P5000<>"",MATCH(Borger!P3:P5000,Borger!P3:P5000,0))),ROW(Borger!P3:P5000)-ROW(Borger!P3)+1),1))

But I've recently added the option to include other catagories in these tabs that I don't want included in the total count ("R&M" and "PWRS") as these are not projects.

=SUM(IF(FREQUENCY(IF(ISNUMBER(1/Borger!T3:T5000),IF(AND(Borger!P3:P5000<>"",Borger!P3:P5000<>"R&M",Borger!P3:P5000<>"PWRS"),MATCH(Borger!P3:P5000,Borger!P3:P5000,0))),ROW(Borger!P3:P5000)-ROW(Borger!P3)+1),1))

I thought the solution would be to include an AND function in the IF statement and then add two more criteria excluding both keywords but it does not seem to work as intended. Any ideas?

Thanks.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Try:
AND function will not work in this case as it will only return one value of TRUE or FALSE where you need an array.
Code:
[TABLE="width: 1602"]
<colgroup><col width="1602"></colgroup><tbody>[TR]
   [TD="width: 1602"]=SUM(IF(FREQUENCY(IF(ISNUMBER(1/Borger!T3:T5000),IF(Borger!P3:P5000<>"",IF(Borger!P3:P5000<>"R&M",IF(Borger!P3:P5000<>"PWRS",MATCH(Borger!P3:P5000,Borger!P3:P5000,0))))),ROW(Borger!P3:P5000)-ROW(Borger!P3)+1),1))[/TD]
 [/TR]
</tbody>[/TABLE]
 
Upvote 0
Man thank you so much I appreciate it that worked perfect! I've been trying to figure this out going on two days!!
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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