Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 16270

Index / Match Formula Spill

$
0
0

My goal is to create a formula that will search through a set of cells until it finds a value, when it finds a value in that selection, it will display the column header. For example, the formula in my attached example is in AU6. Bellow is a summary of the formula.

Formula:=INDEX($O$4:$AQ6,,MATCH($AT6,$O6:$AQ6,0))

I want the formula to search for a cell that has a value in O4 to AQ6 (column headers are in the 4th row). When a value is found, it will return the name of the column header.

I tried using the iNDEX and MATCH functions to get the column header name, but I can't figure out why the formula spills the value found into A8. For this, I don't need the value the formula found to be returned at all, just the column header.

Ultimately, I want to copy the formula into each cell of AU from AU6 all the way to AU103. The spilling creates a mess and I don't know how to fix it. Hope this makes sense and thank you for your time :)

If you prefer to work with the file, I'd be happy to provide it if there is a way to do that there.

Index and Match Forumla Example


Viewing all articles
Browse latest Browse all 16270

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>