A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
. . . I have put together this formula, however because the field that the formula is looking for in the table array doesn't exist in all the sheets (all the table arrays) it calculated #N/A.
How do I get it to totals and egnor those it cannot find.
=SUM(VLOOKUP($A8,'Smiths Street'!A:M,2,FALSE),VLOOKUP($A8,'Chanel Road'!A:M,2,FALSE) etc. )
Thanks
Excel 2016
Hi,
Instead of VLOOKUP, You may use SUMIF.
I tried to recreate Your situation as follows:
- I created 3 worksheets: Smiths Street, Chanel Road and Sheet1.
- In worksheets Smiths Street and Chanel Road, I input dummy data in columns A and B.
-- I chose column A because Your lookup_value is in column A.
-- I chose column B because Your col_index_num is 2.
- In 3rd worksheet >> in cell B8, formula is: =SUMIF('Smiths Street'!$A$1:$A$10,A8,'Smiths Street'!$B$1:$B$10)+SUMIF('Chanel Road'!$A$1:$A$10,A8,'Chanel Road'!$B$1:$B$10)
- I dragged the formula down to more rows.
Note:
i. In worksheet Smiths Street >> ABC is missing.
ii. In worksheet Chanel Road >> EFG is missing.
The formula still got the correct results.
Please respond if You require further assistance. I will try My best to be of help.
If I was able to help You, please mark My response as answer and helpful.
Thank You!