IFERROR WITH INDEX

ozbeachbum

Board Regular
Joined
Jun 3, 2015
Messages
159
Office Version
  1. 2021
Platform
  1. Windows
Hi All,
I have 3 workbooks WB3 requires a formula to bring data from WB1 & 2 and divide by a number in WB3, however their will be occasions when their will be a ZERO.
I have successfully used the following formula, however as it is OFFSET it requires the other WB's to be open.
=(IFERROR((OFFSET('[WB1.xlsx]ACL'!$Q$73,(ROW(Q1)-1)*6,0)*OFFSET('[WB1.xlsx]ACL'!$Q$72,(ROW(Q1)-1)*6,0)
+OFFSET('[WB2.xlsx]SAD'!$CJ$70,(ROW(BJ1)-1)*6,0)+OFFSET('[WB2.xlsx]SAD'!$CN$70,(ROW(BI1)-1)*6,0))/U70,
OFFSET('[WB1.xlsx]ACL'!$Q$73,(ROW(Q1)-1)*6,0)))
To elevate the necessity for the other WB's to be open I tried using INDEX, and received to few arguments error message.
=(IFERROR(INDEX('[WB1.xlsx]ACL'!$Q$73:$Q$333,(ROWS($A$1:$A1)-1)*6)+1)*INDEX('[WB1.xlsx]ACL'!$Q$72:$Q$332,(ROWS($A$1:$A1)-1)*6)+1)
+INDEX('[WB2.xlsx]SAD'!$CJ$70:$CJ$73,(ROWS($A$`:$A1)-1)*6)+1)+INDEX('[WB2.xlsx]SAD'!$CN$70:$CN$73,(ROWS($A$`:$A1)-1)*6)+1))/U70,
INDEX('[WB1.xlsx]ACL'!$Q$73:$Q$333,(ROWS($A$1:$A1)-1)*6)+1)))
Any assistance with a formula so the other workbooks do not need to be open would be greatly appreciated.
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Maybe
Excel Formula:
=IFERROR((INDEX([WB1.xlsx]ACL!$Q$73:$Q$333,(ROWS($A$1:$A1)-1)*6+1)*INDEX([WB1.xlsx]ACL!$Q$72:$Q$332,(ROWS($A$1:$A1)-1)*6+1)+INDEX([WB2.xlsx]SAD!$CJ$70:$CJ$73,(ROWS($A$1:$A1)-1)*6+1)+INDEX([WB2.xlsx]SAD!$CN$70:$CN$73,(ROWS($A$1:$A1)-1)*6+1))/U70,INDEX([WB1.xlsx]ACL!$Q$73:$Q$333,(ROWS($A$1:$A1)-1)*6+1))
 
Upvote 0
Solution
Thanks again Fluff.
Do you get the Super Rugby Pacific in England?
 
Upvote 0
You will have the World Cup close to you, a short hop across the channel.
Now we have Eddie back as head coach the Wallabies might put in a good show.
All the best.
Dave.
 
Upvote 0

Forum statistics

Threads
1,215,092
Messages
6,123,063
Members
449,090
Latest member
fragment

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