Formula returning unexpected reference.

Stephersue

New Member
Joined
Dec 15, 2014
Messages
3
I am trying to pull a list of equipment from a tasking list that reference an equipment code.

On a seperate tab I have input a count in Cell F6 with:
=COUNTIF('CP Board'!B1:B1999,"*PS")

and starting in A2 I am trying to use :

=IF(ROWS(A$2:A2)>F$1," ",INDEX('CP Board'!B$1:B$2000, SMALL( IF('CP Board'!B$1:B$2000="*PS",ROW('CP Board'!B$1:B$2000)),ROWS(A$2:A2))))

This is a sample of the raw data from the 'CP Board'! tab:

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD] [TABLE="width: 40"]
<tbody>[TR="class: grid"]
[TD="width: 40"]5RCP[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 99"]
<tbody>[TR="class: grid"]
[TD="width: 99"]5RCP 160 01 PS[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 40"]
<tbody>[TR="class: grid"]
[TD="width: 40"]5RCP[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 99"]
<tbody>[TR="class: grid"]
[TD="width: 99"]5RCP 160 03 CC[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 40"]
<tbody>[TR="class: grid"]
[TD="width: 40"]5RCP[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 99"]
<tbody>[TR="class: grid"]
[TD="width: 99"]5RCP 160 03 CC[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 40"]
<tbody>[TR="class: grid"]
[TD="width: 40"]CT-1[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 99"]
<tbody>[TR="class: grid"]
[TD="width: 99"]CT-1 150 01 PS[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 40"]
<tbody>[TR="class: grid"]
[TD="width: 40"]CT-1[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 99, align: left"]
<tbody>[TR="class: grid"]
[TD="width: 99"]CT-1 150 03 OS[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 40"]
<tbody>[TR="class: grid"]
[TD="width: 40"]CT-1[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 99"]
<tbody>[TR="class: grid"]
[TD="width: 99"]CT-1 150 05 FM[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 40"]
<tbody>[TR="class: grid"]
[TD="width: 40"]CT-1[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 99"]
<tbody>[TR="class: grid"]
[TD="width: 99"]CT-1 150 06 LS[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 40"]
<tbody>[TR="class: grid"]
[TD="width: 40"]BATM[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 99"]
<tbody>[TR="class: grid"]
[TD="width: 99"]BATM 100 01 PS[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 40"]
<tbody>[TR="class: grid"]
[TD="width: 40"]BATM[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 99"]
<tbody>[TR="class: grid"]
[TD="width: 99"]BATM 100 03 EC[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]


However Currently it is returning this:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][TABLE="width: 275"]
<tbody>[TR="class: grid"]
[TD="width: 275"]5RCP 160 03 CC[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 275"]
<tbody>[TR="class: grid"]
[TD="width: 275, align: center"]#NUM![/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 275"]
<tbody>[TR="class: grid"]
[TD="width: 275, align: center"]#NUM![/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Thoughts Ideas Suggestions... I am going to use the values returned to VLookup equipment descriptions to give me my full equipment list with tonnage, etc.

Thanks for reading!
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Try rather...

=IF(ROWS(A$2:A2)>F$1,"",INDEX('CP Board'!B$1:B$2000, SMALL(IF(ISNUMBER(SEARCH("PS"&"|",'CP Board'!B$1:B$2000&"|",ROW('CP Board'!B$1:B$2000)-ROW('CP Board'!B$1)+1),ROWS(A$2:A2))))
 
Upvote 0
Try rather...

=IF(ROWS(A$2:A2)>F$1,"",INDEX('CP Board'!B$1:B$2000, SMALL(IF(ISNUMBER(SEARCH("PS"&"|",'CP Board'!B$1:B$2000&"|",ROW('CP Board'!B$1:B$2000)-ROW('CP Board'!B$1)+1),ROWS(A$2:A2))))

Giving me an Error :

"You've entered too many arguments for this function."

Rich (BB code):
=IF(ROWS(A$2:A2)>F$1,"",INDEX('CP Board'!B$1:B$2000,
  SMALL(IF(ISNUMBER(SEARCH("PS"&"|",'CP Board'!B$1:B$2000&"|")),
  ROW('CP Board'!B$1:B$2000)-ROW('CP Board'!B$1)+1),ROWS(A$2:A2))))
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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