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!
[TABLE="class: grid, width: 800, align: center"]
<tbody>[TR]
[TD]1877[/TD]
[TD]1.03[/TD]
[TD][/TD]
[TD]1.03[/TD]
[TD]1.02[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1433[/TD]
[TD]1.05[/TD]
[TD]1.05[/TD]
[TD]1.03[/TD]
[TD]1.04[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]625[/TD]
[TD]1.04[/TD]
[TD]1.04[/TD]
[TD]1.04[/TD]
[TD]1.05[/TD]
[TD]1.05[/TD]
[/TR]
[TR]
[TD]858[/TD]
[TD][/TD]
[TD]1.01[/TD]
[TD]1.02[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]331[/TD]
[TD]1.03[/TD]
[TD]1.03[/TD]
[TD]1.03[/TD]
[TD]1.05[/TD]
[TD]1.05[/TD]
[/TR]
</tbody>[/TABLE]


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.
[TABLE="class: grid, width: 800, align: center"]
<tbody>[TR]
[TD]ID Number[/TD]
[TD]1.03[/TD]
[TD]1.04[/TD]
[TD]1.05[/TD]
[/TR]
[TR]
[TD]1433[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]625[/TD]
[TD][/TD]
[TD]3[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]331[/TD]
[TD]3[/TD]
[TD][/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
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,223,358
Messages
6,171,625
Members
452,412
Latest member
thomasleysen531

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