COUNTIFS count if a cell has a value

lo1ly

Board Regular
Joined
Jun 14, 2013
Messages
54
Ok so I can get the COUNIFS function to count what i want it to count, but I'm trying to make the cell either leave it blank if the cell right next to it is null, or have it post the counted number if there is ANY value in the cell right next to it.. This is what I have now. I'm not sure if this will help anyone understand what I am talking about.


=COUNTIFS(Sheet1!A2:A1000,1,A2,"<>")


Any help would be awesome. Thanks everyone
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Not sure if I understand what you need.

Maybe...

=IF($A2<>"",COUNTIF(Sheet1!$A$2:$A$1000,1),"")

M.
 
Last edited:
Upvote 0
Not sure if I understand what you need.

Maybe...

=IF($A2<>"",COUNTIF(Sheet1!$A$2:$A$1000,1),"")

M.


Not quite, I need the count sequence to count only if another cell has a value. For example, if the count sequence counts 80, then I want 80 to show up only if cell A1 on sheet 2 has value. If A1 on sheet 2 does not have a value, then I don’t want the count sequence to count.</SPAN>

Does that clear up any confusion?</SPAN>
 
Upvote 0
Still confused...

This?

=COUNTIFS(Sheet2!$A$2:$A$1000,"<>",Sheet1!$A$2:$A$1000,1)

M.
 
Upvote 0
OK my bad. I made a mistake when putting it in. All your equations work. Thanks for helping out. You guys rock.
 
Upvote 0

Forum statistics

Threads
1,223,238
Messages
6,170,939
Members
452,368
Latest member
jayp2104

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