Help with Index match/countblank

glockgal42

New Member
Joined
Dec 15, 2016
Messages
5
So I need to use Index Match and Countblank in order to arrange the number of parking spots I have available by using information from two sheets.

The first sheet (Yard Configurations) is what we use for the arguments:
#Id
Type
Code
Screen Order
Audit Order
Zone
Inbound
Outbound
NonInventory
Sortable
Deleted
Camera Id
Multicapacity
Capacity
10065

<colgroup><col width="64"></colgroup><tbody>
</tbody>
ParkingLocation

<colgroup><col width="64"></colgroup><tbody>
</tbody>
PS84
3Z
1ew
No
Yes
No
No
No
No
1
10066

<colgroup><col width="64"></colgroup><tbody>
</tbody>
ParkingLocation

<colgroup><col width="64"></colgroup><tbody>
</tbody>
PS85
4A
1ex
No
Yes
No
No
No
No
1
10067

<colgroup><col width="64"></colgroup><tbody>
</tbody>
ParkingLocation

<colgroup><col width="64"></colgroup><tbody>
</tbody>
PS86
4B
1ey
No
Yes
No
No
No
No
1
10068

<colgroup><col width="64"></colgroup><tbody>
</tbody>
ParkingLocation

<colgroup><col width="64"></colgroup><tbody>
</tbody>
PS88
4D
1fa
No
Yes
No
No
No
No
1

<tbody>
</tbody>


IF (H:H, "Yes") & (B:B, "ParkingLocation") Then INDEXMATCH (B:B in "Yard configurations" with A:A in "Data Dump") Finally Countblank (B:B in "Data Dump") If all is true.

The second sheet (Data Dump):
LocationType
Time In Yard
Visit Reason
Owner
Vehicle Id
Load Identity
Seal
Notes
PS84
Skirted Trailer

<colgroup><col width="64"></colgroup><tbody>
</tbody>
1 hour(s), 28 minute(s)

<colgroup><col width="64"></colgroup><tbody>
</tbody>
OUTBOUND

<colgroup><col width="64"></colgroup><tbody>
</tbody>
UPSS

<colgroup><col width="64"></colgroup><tbody>
</tbody>
827970

<colgroup><col width="64"></colgroup><tbody>
</tbody>
PS85
Skirted Trailer

<colgroup><col width="64"></colgroup><tbody>
</tbody>
4 hour(s), 1 minute(s)

<colgroup><col width="64"></colgroup><tbody>
</tbody>
OUTBOUND

<colgroup><col width="64"></colgroup><tbody>
</tbody>
UPSS

<colgroup><col width="64"></colgroup><tbody>
</tbody>
841850

<colgroup><col width="64"></colgroup><tbody>
</tbody>
PS86
Skirted Trailer

<colgroup><col width="64"></colgroup><tbody>
</tbody>
7 hour(s), 19 minute(s)

<colgroup><col width="64"></colgroup><tbody>
</tbody>
OUTBOUND

<colgroup><col width="64"></colgroup><tbody>
</tbody>
SNCY

<colgroup><col width="64"></colgroup><tbody>
</tbody>
157524

<colgroup><col width="64"></colgroup><tbody>
</tbody>
PS88

<colgroup><col width="64"></colgroup><tbody>
</tbody>

<colgroup><col width="64"></colgroup><tbody>
</tbody>

<colgroup><col width="64"></colgroup><tbody>
</tbody>

<colgroup><col width="64"></colgroup><tbody>
</tbody>

<colgroup><col width="64"></colgroup><tbody>
</tbody>

<tbody>
</tbody>


<colgroup><col style="width:48pt" span="14" width="64"> </colgroup><tbody>
</tbody>
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
It's not very clear what the outcome should be. Can you use an actual example showing exactly what is being matched where and what the expected outcome needs to be and where this should be shown?

As far as I can tell, you're asking:

For each row in Yard Configurations:
If Outbound in Yard Configurations = "Yes" AND Type in Yard Configurations = "ParkingLocation" Then
Take the #Id number from the same row in Yard Configurations
Find this #Id number in Data Dump

Where it's not clear is what blanks do you want counted; I think you want to filter Data Dump for the #Id number and count the filtered number of blank cells in column B of Data Dump?

Can you provide more clarity please?
 
Last edited:
Upvote 0
Taking the ID# in data dump and counting any blank cells in the column to the right of the ID#'s. The ID #'s are different parking spots we have. The column to the right of the ID #'s is telling you if there is a trailer in that parking spot or not. I need to count all the ID #'s that do not have a trailer in them.
 
Upvote 0

Forum statistics

Threads
1,214,631
Messages
6,120,645
Members
448,974
Latest member
DumbFinanceBro

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