index match if iferror

rjmdc

Well-known Member
Joined
Apr 29, 2020
Messages
672
Office Version
  1. 365
Platform
  1. Windows
hi
this is the original formula that was "created" for my books
=IF(IFERROR(INDEX(Terminations[termination_reason], MATCH(1, (Terminations[tabs_id]=[@[TABS ID]])*([@[Service Month]]>=Terminations[termination_date]), 0), ), "")="terminated", 0, SUMIFS('Budget Summary Periods'!G:G, 'Budget Summary Periods'!$B:$B, [@[TABS ID]], 'Budget Summary Periods'!$F:$F, "<="&[@[Service Month]], 'Budget Summary Periods'!$F:$F, ">="&[@[Budget Start Date]]))

i need instead of index termination_reason to use termination_date only if >0
i dont know and i've tried to correct the fomula but its not working
the solution i was asked to try:
=IF(IFERROR(INDEX(Terminations[termination_date], MATCH(1, (Terminations[tabs_id]=[@[TABS ID]])*([@[Service Month]]>=Terminations[termination_date]), 0), ), "")>0, 0, SUMIFS('Budget Summary Periods'!G:G, 'Budget Summary Periods'!$B:$B, [@[TABS ID]], 'Budget Summary Periods'!$F:$F, "<="&[@[Service Month]], 'Budget Summary Periods'!$F:$F, ">="&[@[Budget Start Date]]))
doesnt wrk the entire columns are filled with 0

what am i doing wrong?
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
please post a sample of your data. it looks like the formula refers to many things
When building such a formula I like to spread it across multiple columns to break it up into it's bit. I realise it's harder when you have inherited something like this.

I think there may be a problem with your match, without seeing how your data works this is just a guess, but the match(1..... bit will return something for the first line it finds with a 1 in it. But I'd say it's always finding something and it's >0 so you're getting 0's out.
 
Upvote 0

Forum statistics

Threads
1,215,050
Messages
6,122,868
Members
449,097
Latest member
dbomb1414

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