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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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,911
Messages
6,175,334
Members
452,636
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