Counting a Table Contents

Steve 1962

Active Member
Joined
Jan 3, 2006
Messages
355
Office Version
  1. 365
Platform
  1. Windows
Hi

I have a table that I want to summarise a count using certain criteria. That table is in cells F7 to J11.

The data that are being checked are in cells A1 to D24. I want the summary table noted above to check the date (column A), reference number column B), start & end (columns C & D) and only count if the locations found in the Start & End columns are not noted in the "Allowed Locations" which are identified in G1 to J4.

I have manually entered what the values should be in cells G8 to J11.

I have a feeling that it may be a MATCH / INDEX type solution but not sure. If there is an easier way, then all the better.

Thanks

Book1
ABCDEFGHIJ
1DateReferenceStartEndReference567111234678
21/04/2020567CairoNew YorkAllowed LocationsBostonCairoBostonAuckland
31/04/2020567BostonNew YorkNew YorkAucklandNew YorkLas Vegas
41/04/2020567BostonNew YorkCalgaryNew YorkCairoLos Angeles
51/04/2020111DallasBoston
61/04/2020567BostonCalgary
72/04/2020234BostonCairoShould Read - 567111234678
82/04/2020234Los AngelesBoston1/04/20201100
92/04/2020567BostonBoston2/04/20200110
102/04/2020567BostonNew York3/04/20200203
112/04/2020111BostonNew York4/04/20200020
122/04/2020567BostonNew York
133/04/2020111New YorkNew York
143/04/2020111New YorkLos Angeles
153/04/2020111Las VegasNew York
163/04/2020678New YorkCairo
173/04/2020678New YorkCairo
183/04/2020678SeattleCairo
194/04/2020111New YorkCairo
204/04/2020111New YorkCairo
214/04/2020567New YorkBoston
224/04/2020234AucklandBoston
234/04/2020234CairoBoston
244/04/2020234AucklandBoston
Sheet7
 
OK - have found the issue. The reference column (B) was formatted as text. Now it is working fine as I've changed it to number.

Just want to say thanks very much to you two that had patience enough to get me to the end.

All the best and thanks.
 
Upvote 0

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Forum statistics

Threads
1,216,071
Messages
6,128,626
Members
449,460
Latest member
jgharbawi

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