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?
 
I totally MIS understood what you were after
 
Upvote 0

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
List A is located in A:E in Sheet1; List B in A:D in Sheet2...

E1, Sheet2, control+shift+enter, not just enter, and copy down:
Rich (BB code):
=IFERROR(INDEX(Sheet1!$E$1:$E$7,MATCH(1,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,1)))),0)),"not in list")
 
Upvote 0
Genius formula above but, wont get the last value right?
Last to rows are exact duplicates so the formula gives the first duplicates value.

Learning alot by watching mr Aladins solutions so looking forward for the extra twist on this one :)
 
Upvote 0
Genius formula above but, wont get the last value right?
Last to rows are exact duplicates so the formula gives the first duplicates value.

Learning alot by watching mr Aladins solutions so looking forward for the extra twist on this one :)

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")
 
Upvote 0
Ok it is doing something! Lol! It's not you it's me the novice here, still working on it! The first time I received a "not in list" in all rows. Next I received all 3000, so I got first record! Yeah me! Then I got all 0's. Bah humbug! Will keep trying!
 
Upvote 0
Ok it is doing something! Lol! It's not you it's me the novice here, still working on it! The first time I received a "not in list" in all rows. Next I received all 3000, so I got first record! Yeah me! Then I got all 0's. Bah humbug! Will keep trying!

did you Sheet2, E1, control+shift+enter and copy down: so it is entered as an array formula, with curly braces
 
Upvote 0
did you Sheet2, E1, control+shift+enter and copy down: so it is entered as an array formula, with curly braces


I did control+shift+enter! Is there a way for me to break the formula into little pieces? So I can add one part at a time? I.e index..then row...then..count if?

Thanks for your help here!I am learning so much!!!!
 
Upvote 0

Forum statistics

Threads
1,216,096
Messages
6,128,807
Members
449,468
Latest member
AGreen17

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