Getting frustrated with excel formula! Help!

serraostudent1

New Member
Joined
Nov 17, 2010
Messages
45
I have the following formula working correctly! However it works correctly until it gets an error.

=iferror(vlookup(a2,a2:k450,6,0),"not in list")

Once the first "not in list " is returned
I need excel to start again by looking at the row above.

For example. Rows 2,3,4 all return column 6 correctly. Then Row5 was "not in list" excel should perform the above formula again but, start from row 4. Then loop until the end.

I hope this makes sense!

Thanks for taking the time to read my post!

Can you assist?
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
I didn't expect duplicate records...

Sheet2, E1, control+shift+enter and copy down:
Rich (BB code):
=IFERROR(INDEX(Sheet1!$E$1:$E$7,
  SMALL(IF(Sheet1!$A$1:$A$7=$A1,IF(Sheet1!$B$1:$B$7=$B1,
  IF(Sheet1!$C$1:$C$7=$C1,IF(Sheet1!$D$1:$D$7=$D1,
  ROW(Sheet1!$E$1:$E$7)-ROW(Sheet1!$E$1)+1)))),
  COUNTIFS($A$1:A1,A1,$B$1:B1,B1,$C$1:C1,C1,$D$1:D1,D1))),"not in list")

Little shorter
Code:
=IFERROR(INDEX(Sheet1!$E$1:$E$7,SMALL(IF(MMULT(--(A1:D1=Sheet1!$A$1:$D$7),{1;1;1;1})=4,ROW($1:$7)),SUM(--(MMULT(--(A1:D1=Sheet2!$A$1:$D1),{1;1;1;1})=4)))),"Not in list")

Greetings
 
Upvote 0
You probably won't be surprised by my ignorance. However, I got my formula to work after watching countless 'excel is fun' videos. I had to lock my column in my array section and it worked like a charm. Thanks again for taking your time to help a novice learn this stuff! Stay tuned for the next! Regards!
 
Upvote 0
You probably won't be surprised by my ignorance. However, I got my formula to work after watching countless 'excel is fun' videos. I had to lock my column in my array section and it worked like a charm. Thanks again for taking your time to help a novice learn this stuff! Stay tuned for the next! Regards!

That's great. Thanks for providing feedback.
 
Upvote 0

Forum statistics

Threads
1,216,101
Messages
6,128,845
Members
449,471
Latest member
lachbee

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