Formula to pick up data from another sheet

Caveman1964

Board Regular
Joined
Dec 14, 2017
Messages
127
Office Version
  1. 2016
Platform
  1. Windows
Hi,
I am trying to get a cell to countif from another sheet.
I am on sheet 5 and trying to get data from data collection sheet. and if blank it shows nothing.
For some reason, I am just getting a zero. I want to read column L from data collection and count how many of certain customers are there. New customers are added weekly.
Please help if I explained well enough.
Thank you ahead of time.

=IF(ISBLANK('Data Collection'!L7),"",COUNTIFS('Data Collection'!L$7:L7,L7))
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
I'm assuming 'sheet 5' has a list of customers, say in column A and that you want to count the customers that match on sheet 'Data Collection' in column L. This will return blank for a missing name in column a and count the matching customers on 'Data Collection'.
Place in row 2 of the column you want to show the count, then propagate down the length of the customer list:
=IF(A2="","",COUNTIF('Data Collection'!L:L,A2))
 
Last edited:
Upvote 0
That works perfect. Thank You!
Much appreciated.

You wouldn't happen to know how to filter out the top 5? It counts perfect and I want to pull the top 5 out but a customer may be on there 6 times and the count is 6 but in 6 places. I want to pull the name from column L and the number it shows up. and there will be new customers so I can't use the count and have known criteria.......it has to pick up new customers. I am working with that now and may get figured out. only if you have time. Thanks so much for helping already!
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,971
Members
452,371
Latest member
Frana

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