Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Excel fill on IF formula not following sequence

I’ve got the following table:
ExcelSheet

And am looking to use the item weight in column L, find the corresponding value in column O and extract the price in column P to add to the item row in column J.

I’ve written the following formula but the quick fill and fill options aren’t carrying the formula down correctly and are moving all the row numbers down, creating an error.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

=IF(MATCH(L2,O2:O17,0),INDEX(P2:P17,MATCH(L2,O2:O17,0)))

Is there a way to avoid this or a better formula that would avoid this?

>Solution :

You can use the ‘locked reference’ function in Excel by adding ‘$’:

=IF(MATCH(L2,$O$2:$O$17,0),INDEX($P$2:$P$17,MATCH(L2,$O$2:$O$17,0)))
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading