Formula needs condensing

jamescooper

Well-known Member
Joined
Sep 8, 2014
Messages
834
Hello I need to condense this formula so that it calculates for +10 to -10 with this part.

Any ideas please?

MATCH(TEXT(MID(N12,6,4)+1,"0000")

IFERROR(INDEX(INDIRECT("'Compare "&$M$8&"'!$A:$A"),MATCH(TEXT(MID(N12,6,4)+1,"0000")&" "&TRIM(MID(N12,11,50)),INDIRECT("'Compare "&$M$8&"'!$C:$C"),0)),IFERROR(INDEX(INDIRECT("'Compare "&$M$8&"'!$A:$A"),MATCH(TEXT(MID(N12,6,4)+2,"0000")&" "&TRIM(MID(N12,11,50)),INDIRECT("'Compare "&$M$8&"'!$C:$C"),0)),IFERROR(INDEX(INDIRECT("'Compare "&$M$8&"'!$A:$A"),MATCH(TEXT(MID(N12,6,4)+3,"0000")&" "&TRIM(MID(N12,11,50)),INDIRECT("'Compare "&$M$8&"'!$C:$C"),0)),IFERROR(INDEX(INDIRECT("'Compare "&$M$8&"'!$A:$A"),MATCH(TEXT(MID(N12,6,4)+4,"0000")&" "&TRIM(MID(N12,11,50)),INDIRECT("'Compare "&$M$8&"'!$C:$C"),0))

Thanks.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
It should work using the same method as your previous thread,

=IFERROR(INDEX(INDIRECT("'Compare "&$M$8&"'!$A:$A"),AGGREGATE(15,6,MATCH(TEXT(MID(N12,6,4)-10+ROW(F$1:F$21)-1,"0000")&" "&TRIM(MID(N12,11,50)),INDIRECT("'Compare "&$M$8&"'!$C:$C"),0),1)),"No Match")
 
Upvote 0
Thanks Jason, I wasn't sure with the added complexity to the formula - i.e. the Indirect/Index how this would work, but thanks.
 
Upvote 0

Forum statistics

Threads
1,215,787
Messages
6,126,905
Members
449,348
Latest member
Rdeane

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