INDEX and MATCH confusing error (?)

Status
Not open for further replies.

matthewlouis

Active Member
Joined
Mar 28, 2014
Messages
263
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I have the following INDEX and MATCH formula . . .

=IF(C31="Confirmed Sideways",INDEX('D1'!$Q$1:$Q$100,MATCH(F31,'D1'!$S$1:$S$100,0)),IF(C31="Suspect Sideways",INDEX('D1'!$L$1:$L$100,MATCH(F31,'D1'!$N$1:$N$100,0)),IF(C31="Confirmed Bearish",INDEX('D1'!$G$1:$G$100,MATCH(F31,'D1'!$I$1:$I$100,0)),IF(C31="Suspect Bearish",INDEX('D1'!$B$1:$B$100,MATCH(F31,'D1'!$D$1:$D$100,0)),IF(C31="Confirmed Bullish",INDEX('D1'!$AA$1:$AA$100,MATCH(F31,'D1'!$AC$1:$AC$100,0)),IF(C31="Suspect Bullish",INDEX('D1'!$V$1:$V$100,MATCH(F31,'D1'!$X$1:$X$100,0))))))))

My problem is it works randomly. I get the correct number in some cells but others I get #N/A) when the exact same data in that same column is being accessed. For example:

Sector
XLRESuspect Bullish
#N/A
SectorXLUSuspect Bullish18

<tbody>
</tbody>



Same exact formula for Suspect Bullish, same column of numbers it's searching . . . and it gives #N/A . . . 18 is correct for XLU but I can't understand why XLRE returns the error. I have checked all cells and they are all numbers / data, not text.

Any ideas?

Thanks for your help!
 

Some videos you may like

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Status
Not open for further replies.

Watch MrExcel Video

Forum statistics

Threads
1,109,353
Messages
5,528,203
Members
409,807
Latest member
nicky736

This Week's Hot Topics

  • Change military grades into rank
    Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
  • VBA COUNTIF SOLUTION
    Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
  • INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
    Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
  • Auto-Create a monthly Sign in sheet for preschool students
    The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
  • VBA vlookup multiple results
    Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
  • Extract values for earliest/latest times
    I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...
Top