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:

AB
5RCP

<tbody>
</tbody>
5RCP 160 01 PS

<tbody>
</tbody>
5RCP

<tbody>
</tbody>
5RCP 160 03 CC

<tbody>
</tbody>
5RCP

<tbody>
</tbody>
5RCP 160 03 CC

<tbody>
</tbody>
CT-1

<tbody>
</tbody>
CT-1 150 01 PS

<tbody>
</tbody>
CT-1

<tbody>
</tbody>
CT-1 150 03 OS

<tbody>
</tbody>
CT-1

<tbody>
</tbody>
CT-1 150 05 FM

<tbody>
</tbody>
CT-1

<tbody>
</tbody>
CT-1 150 06 LS

<tbody>
</tbody>
BATM

<tbody>
</tbody>
BATM 100 01 PS

<tbody>
</tbody>
BATM

<tbody>
</tbody>
BATM 100 03 EC

<tbody>
</tbody>

<tbody>
</tbody>


However Currently it is returning this:
5RCP 160 03 CC

<tbody>
</tbody>
#NUM!

<tbody>
</tbody>
#NUM!

<tbody>
</tbody>

<tbody>
</tbody>

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

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
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,215,457
Messages
6,124,941
Members
449,197
Latest member
k_bs

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