Evaluate and Calculate from Closed Workbook

SMHelp

New Member
Joined
Jan 12, 2022
Messages
2
Office Version
  1. 2010
Platform
  1. Windows
Hello,

I'm going slightly mad trying to figure out how I can do this, so I would really appreciate any guidance!!

I have two workbooks - one contains references and figures (A), one contains a total (B). The idea is to check one column in (A) for a specific text value, then add numerical values in another column in (A), producing the total in a cell in (B).

Here are the issues:

1) Can't use SUMIF, as it needs to calculate on a closed workbook;
2) Can't use SUMPRODUCT, as text value in column (A) is based on a VLOOKUP and has some #N/A values in the column, which fails the SUMPRODUCT;
3) Tried using IF statement, which works on single cell text references in (A), but gives a #VALUE error when using even a 3 cell range (and can't figure out why - have checked all values in the range in (A) and they're all the same types)

Any ideas greatly appreciated!!

Thanks :)

Sian
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Try the following array formula . . .

Excel Formula:
=SUM(IF(1-ISNA('C:\Users\Domenic\Desktop\[Book1.xlsm]Sheet1'!$A$2:$A$10),IF('C:\Users\Domenic\Desktop\[Book1.xlsm]Sheet1'!$A$2:$A$10="X",'C:\Users\Domenic\Desktop\[Book1.xlsm]Sheet1'!$B$2:$B$10)))

. . . confirmed with CONTROL+SHIFT+ENTER. Change the references accordingly.

Hope this helps!
 
Upvote 0
Solution

Forum statistics

Threads
1,214,606
Messages
6,120,479
Members
448,967
Latest member
visheshkotha

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