indexing to find an alpha numaric entry

Jing

Active Member
Joined
Feb 11, 2011
Messages
289
I am useing the following formula:
=IF(ROWS(C$4:C4)>$I$1,"",INDEX(Equipment!$D:$D,SMALL(IF(Equipment!$C:$C=$A$2,ROW(Equipment!$C:$C)),ROWS(C$4:C4))))

but when i use it to find an alphanumaric entry in C:C it comes back with an Num error... most likly due to teh letters...

just wondering if there is a way to fix that so it will report the correct value...

Thanks
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Sorry copied the wrong formula

=IF(ROWS(C$4:C4)>$I$1,"",INDEX(Equipment!$A:$A,SMALL(IF(Equipment!$B$1:$B$2375=$A$2,ROW(Equipment!$B$1:$B$2375)),ROWS(C$4:C4))))
 
Upvote 0
Sorry copied the wrong formula

=IF(ROWS(C$4:C4)>$I$1,"",INDEX(Equipment!$A:$A,SMALL(IF(Equipment!$B$1:$B$2375=$A$2,ROW(Equipment!$B$1:$B$2375)),ROWS(C$4:C4))))
I'm assuming there's a count formula in I1?

That's where the problem would be. The formula checks to see if the data in column B matches the lookup value in A2. It either matches or it doesn't.

If the count function is counting things that aren't exact matches then that will lead to problems.

So, we'd need to see some sample data to figure out where this is going wrong.
 
Upvote 0
your right there is a count in I1 and it works it counts the correct amount based on the information entered into A2... I just get NUM error as a result...
 
Upvote 0
your right there is a count in I1 and it works it counts the correct amount based on the information entered into A2... I just get NUM error as a result...
Let's assume the count formula in I1 returns 5.

The logical test in the IF function:

...IF(Equipment!$B$1:$B$2375=$A$2...

Only has 4 matches. So, that's how the formula ends up returning the #NUM! error. The count formula must return the same number of matches as the IF logical test.

Without knowing what the data looks like or what the count formula looks like there's no way I can tell you where the problem is.
 
Upvote 0

Forum statistics

Threads
1,224,537
Messages
6,179,408
Members
452,912
Latest member
alicemil

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