COUNT IF

meganruth

New Member
Joined
Mar 29, 2023
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I'm trying to input a formula based on multiple criteria,

Firstly I need it to only count if Column G shows a FT or HT
secondly i need it to count PT recorded between columns H and M for each row, BUT only if there is NOT a HT or FT present in any of those cells. i need both criteria's to link and give me a figure if all of the above conditions are met

am i asking for too much? this one is really testing my patience
 

Attachments

  • Picture10.png
    Picture10.png
    23.8 KB · Views: 9

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi & Welcome to MrExcel.

Can you post the data along with some manually typed expected results.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Hello. That picture is tiny! Paste some sample data here rather than a picture. A picture means we need to type out to test formulas. Less likely to receive help.
 
Upvote 0
Hello. That picture is tiny! Paste some sample data here rather than a picture. A picture means we need to type out to test formulas. Less likely to receive help.
PeriodWeek number (calendar year)Portion (of week in estab)Portion (denominator)Overall classification (CU172)Session counted (numerator)Industries classification (CU172a)Education classification (CU172b)Services classification (CU172c)Interventions classification (CU172d)Other purposeful classification (CU172e)
Jan 2023​
2023-W01
1.00​
1.00​
FT
1​
UnemployedUnemployedUnemployedUnemployedFT
Jan 2023​
2023-W01
1.00​
1.00​
FT
1​
UnemployedUnemployedUnemployedUnemployedFT
Jan 2023​
2023-W01
1.00​
1.00​
PT
0​
PTUnemployedUnemployedUnemployedUnemployed
Jan 2023​
2023-W01
1.00​
1.00​
HT
1​
PTHTUnemployedUnemployedPT
Jan 2023​
2023-W01
1.00​
1.00​
FT
1​
UnemployedFTUnemployedUnemployedUnemployed
Jan 2023​
2023-W01
1.00​
1.00​
PT
0​
PTUnemployedUnemployedUnemployedUnemployed
Jan 2023​
2023-W01
1.00​
1.00​
FT
1​
UnemployedUnemployedFTUnemployedUnemployed
Jan 2023​
2023-W01
1.00​
1.00​
HT
1​
UnemployedUnemployedHTUnemployedUnemployed
Jan 2023​
2023-W01
1.00​
1.00​
FT
1​
UnemployedUnemployedFTUnemployedUnemployed
Jan 2023​
2023-W01
1.00​
1.00​
FT
1​
UnemployedUnemployedUnemployedUnemployedFT
Jan 2023​
2023-W01
1.00​
1.00​
HT
1​
PTUnemployedUnemployedUnemployedPT
 
Upvote 0
Hello. That picture is tiny! Paste some sample data here rather than a picture. A picture means we need to type out to test formulas. Less likely to receive help.
Thanks Steve, sorry new to this!

from the data, i want to be able to count the amount of PT between industries and other based on if the overall column shows FT or HT. in addition if any of the columns between industries show FT or HT i do not want to count
 
Upvote 0
Thanks Steve, sorry new to this!

from the data, i want to be able to count the amount of PT between industries and other based on if the overall column shows FT or HT. in addition if any of the columns between industries show FT or HT i do not want to count
For example, the last row would be 2. but row 4 would be 0 because there is a HT present
 
Upvote 0
a
Hi & Welcome to MrExcel.

Can you post the data along with some manually typed expected results.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
Sorry i am unable to download the tool due to restrictions on my work computer. I have uploaded data below, and my expected results

Thanks
 
Upvote 0
Try this:

=IF(SUM(COUNTIF(G2:M2,{"FT","HT"})),"",COUNTIF(H2:M2,"PT"))
 
Upvote 0
=IF(AND(SUM(COUNTIF(G2,{"FT","HT"}))=1,SUM(COUNTIF(H2:M2,{"FT","HT"}))=0),COUNTIF(H2:M2,"PT"),"")

This work?
 
Upvote 0
Solution

Forum statistics

Threads
1,215,472
Messages
6,125,004
Members
449,203
Latest member
Daymo66

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