Vlookup and Countif Across Rows with Criteria

dhubz

New Member
Joined
Sep 10, 2014
Messages
48
Office Version
  1. 2016
Platform
  1. Windows
Hi Everyone,

I can't seem to be able to get this to work. Hoping someone here can shed some light on my issue. On Sheet1! is a Table of information, that looks a lot like the sample. Column A is a unique ID Number(approx 250 rows), Column B, C, D, etc to AJ is an item number. Sheet2! is a summary sheet.

Sheet1!
18771.031.031.02
14331.051.051.031.04
6251.041.041.041.051.05
8581.011.02
3311.031.031.031.051.05

<tbody>
</tbody>


Sheet2!

On Sheet2! Col A is a partial list(dynamic) based on a vlookup formula for other criteria.(this part works fine). I need to count
the number of each times the item occurs across the row based on the ID Number. Below is what I am trying to achieve.
ID Number1.031.041.05
1433112
62532
33132

<tbody>
</tbody>


This is as close as I got, but it doesn't isolate the rows, I've been trying to add a vlookup into the below formula to isolate the rows, but nothing is working.
Code:
=IF(NOT(ISERROR(MATCH(A4,Table1[ID '#]))),COUNTIF(SHEET1!2:10,F2),"No Match Found")

Thanks
D
 
Last edited:

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Try:
Copy formula down and across as needed. Change ranges to match your data.

Excel Workbook
ABCD
1ID Number1.031.041.05
21433112
3625032
4331302
Sheet2
Excel Workbook
ABCDEF
118771.031.031.02
214331.051.051.031.04
36251.041.041.041.051.05
48581.011.02
53311.031.031.031.051.05
Sheet1
 
Upvote 0

Forum statistics

Threads
1,215,045
Messages
6,122,830
Members
449,096
Latest member
Erald

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