If Statement??

CThai

Active Member
Joined
Mar 18, 2007
Messages
295
Hello – I have an excel 2007 and I would like to have a total records counts IF column A equal to a text value of “T” and a text value of “S” and column B equal to a text value of “TMS” show me total records. I try doing Sum and look up…but that only give me the 1 number… I’m not sure how to get more then 3 values to give me the total numbers of records… please help.

thank you!
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Try looking at SumIFs as you are using 2007 this will allow you to add multiple criteria.
 
Upvote 0
Try

=SUMPRODUCT(--(B1:B100="TMS"),--ISNUMBER(MATCH(A1:A100,{"T","S"},0)))
 
Upvote 0
hi VoG

sorry - quick question - will the formulas also work if column A have a number as well? can i use the same logic?




=SUMPRODUCT(--(B1:B100="TMS"),--ISNUMBER(MATCH(A1:A100,{"1"},0)))
 
Upvote 0
If you are looking to count just 1s then

=SUMPRODUCT(--(B1:B100="TMS"),--(A1:A100=1))
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,849
Members
452,948
Latest member
UsmanAli786

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