Formula for not blank in one column and number in another column

bbbb1234

Board Regular
Joined
Aug 8, 2002
Messages
109
I want a formula that will look across the range below and tell me how many cells have a 1 in Col B but DO NOT have any text in Col A if Col B is 1. In the Data Range below, the formula result would be 1. I thought about something like this: COUNTIF(A2:B13,"AND(ISBLANK(A2:A13),A2:A13=1)") but this does not work however I think it conveys what I want.

Any ideas?

Data Range
Book1
AB
1Col ACol B
2test11
31
4test11
52
6test32
73
8test43
93
104
11test54
124
13test64
Sheet1
 

Some videos you may like

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,333
Office Version
  1. 365
Platform
  1. Windows
How about
=COUNTIFS(B:B,1,A:A,"")
 

bbbb1234

Board Regular
Joined
Aug 8, 2002
Messages
109

ADVERTISEMENT

Well, that was a LOT easier than I thought!! Both work! Thanks a million Fluff and sandy666!!!!!!!
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,333
Office Version
  1. 365
Platform
  1. Windows
Glad we could help & thanks for the feedback.
 

Watch MrExcel Video

Forum statistics

Threads
1,127,145
Messages
5,623,003
Members
415,945
Latest member
Koboca

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
Top