CountIf Help needed

mofan1

New Member
Joined
Dec 1, 2017
Messages
3
Hello All! I'm working on a spreadsheet and I'm trying to data in cells that are alpha and numeric. The cells show this info: 1R,2Y; 1R,2Y,4R. There are more cells than that, but here's the formula I'm trying to use: COUNTIF(B$4:DE$17,"=1") - COUNTIF(B$4:DE$17,"*G*"). The answer keeps coming up -70 and all I'm really looking for is the formula to look at the cells and tell me if there is a '1' in the cell and the alpha character next to it is a G, then count that. So I counted this spreadsheet manually and the answer to this should be 5, because there are only 5 1Gs in the spreadsheet. How can I fix this issue?
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Welcome to the forum.

=COUNTIF(B$4:DE$17,"*1G*")

should do that for you.
 
Upvote 0
Try: =COUNTIF(B$4:DE$17,"*1G*")

OOPS. RoryA beat me to it. :)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,325
Members
452,635
Latest member
laura12345

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