Where would I add iferror function to suppress DIV/0 error message?

PWil84

New Member
Joined
May 20, 2021
Messages
41
Office Version
  1. 2019
Hello All,

I recently wrote the formula below but I'm unsure about where to add the iferror function to suppress the DIV/0 error message. Can you please help?

=(INDEX(INDIRECT("'" & D1503 & "'!$A$1:$AA$500"),MATCH($A1503,INDIRECT("'" & D1503 & "'!$C1:$C$500"),0),MATCH($B1503,INDIRECT("'" & D1503 & "'!$3:$3"),0))/INDEX(INDIRECT("'TOTAL DC BUDGET'!$A$1:$AA$500"),MATCH($A1503,INDIRECT("'TOTAL DC BUDGET'!$C1:$C$500"),0),MATCH($B1503,INDIRECT("'TOTAL DC BUDGET'!$3:$3"),0)))*INDEX(INDIRECT("'DIGITAL BUDGET'!$A$1:$AA$500"),MATCH($A1503,INDIRECT("'DIGITAL BUDGET'!$C1:$C$500"),0),MATCH($B1503,INDIRECT("'DIGITAL BUDGET'!$8:$8"),0))
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
How about
Excel Formula:
=IFERROR((INDEX(INDIRECT("'" & D1503 & "'!$A$1:$AA$500"),MATCH($A1503,INDIRECT("'" & D1503 & "'!$C1:$C$500"),0),MATCH($B1503,INDIRECT("'" & D1503 & "'!$3:$3"),0))/INDEX(INDIRECT("'TOTAL DC BUDGET'!$A$1:$AA$500"),MATCH($A1503,INDIRECT("'TOTAL DC BUDGET'!$C1:$C$500"),0),MATCH($B1503,INDIRECT("'TOTAL DC BUDGET'!$3:$3"),0)))*INDEX(INDIRECT("'DIGITAL BUDGET'!$A$1:$AA$500"),MATCH($A1503,INDIRECT("'DIGITAL BUDGET'!$C1:$C$500"),0),MATCH($B1503,INDIRECT("'DIGITAL BUDGET'!$8:$8"),0)),"")
 
Upvote 0
probably at the front

=IFERROR (

your formula

, "" )
 
Upvote 0
How about
Excel Formula:
=IFERROR((INDEX(INDIRECT("'" & D1503 & "'!$A$1:$AA$500"),MATCH($A1503,INDIRECT("'" & D1503 & "'!$C1:$C$500"),0),MATCH($B1503,INDIRECT("'" & D1503 & "'!$3:$3"),0))/INDEX(INDIRECT("'TOTAL DC BUDGET'!$A$1:$AA$500"),MATCH($A1503,INDIRECT("'TOTAL DC BUDGET'!$C1:$C$500"),0),MATCH($B1503,INDIRECT("'TOTAL DC BUDGET'!$3:$3"),0)))*INDEX(INDIRECT("'DIGITAL BUDGET'!$A$1:$AA$500"),MATCH($A1503,INDIRECT("'DIGITAL BUDGET'!$C1:$C$500"),0),MATCH($B1503,INDIRECT("'DIGITAL BUDGET'!$8:$8"),0)),"")
I'm getting the too few arguments message
 
Upvote 0
Try copying it again, I added an extra couple of brackets.
 
Upvote 0
Try copying it again, I added an extra couple of brackets.
I did but one and the cells are coming back blank which is great but I'd like them to come back with zeroes formatted in currency and formatting seems to be a problem.
 
Upvote 0
If you want a zero then just change the "" to 0 at the end of the formula
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,967
Messages
6,122,503
Members
449,090
Latest member
RandomExceller01

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