Archive of Mr Excel Message Board


Back to Forms in Excel VBA archive index
Back to archive home

3D Formula...

Posted by Ian Mac on January 30, 2002 4:21 AM
All,

can anyone tell me how I might do this,

10 Sheets

Sheet1 A1: A B1: 2.5
Sheet2 A1: B B1: 1.5
Sheet3 A1: A B1: 3.75
Sheet4 A1: C B1: 4
Sheet5 A1: B B1: 2.5
Etc.
Etc.
Etc.
Etc.
Etc.

I need to add B1 where A1 = Input Value (eg A)

in this case A would result in 6.25

Many Thanks

Ian Mac


Check out our Excel Resources

Re: 3D Formula...

Posted by Bessie Bagshot on January 30, 2002 5:29 AM


SUMIF cannot be used across sheets.
Assuming you want to put the result in Sheet1, a workaround would be to select all sheets except Sheet1 and enter the following formula in cell C1 (or the cell of your choice) :-
=IF(A1="A",B1,0)

Then enter in C1 on Sheet1 :-
=IF(A1="A",B1,0)+SUM(Sheet2:Sheet10!C1)



Re: 3D Formula...

Posted by Ian Mac on January 30, 2002 7:05 AM


My idea is to have it in one cell on a MasterSummary so i then manipulate the formula outside of the cell
i.e. change the value in a1 on the summary to "B" and it would add the accordingly,
unfortunatly the things it needs to look at are not just A B C, they will eventually be a lot more dynamic, pulling the A B C (as it were) from lookups on a Data sheet which inturn would drive a drop down on the summary to work from,

any clearer (it's not to me)

Ian Mac


Re: 3D Formula...

Posted by Bessie Bagshot on January 30, 2002 3:40 PM


>>>>My idea is to have it in one cell on a MasterSummary so i then manipulate the formula outside of the cell
i.e. change the value in a1 on the summary to "B" and it would add the accordingly,

Just change the formula on Sheets 2 thru 10 to :-
=IF(A1=Sheet1!A1,B1,0)
On Sheet1, if you don't want to include Sheet1 in the total :-
=SUM(Sheet2:Sheet10!C1)

>>>>unfortunatly the things it needs to look at are not just A B C, they will eventually be a lot more dynamic, pulling the A B C (as it were) from lookups on a Data sheet which inturn would drive a drop down on the summary to work from,

Not enough info to respond. Sounds like VBA may be required.



This archive is from the original message board at www.MrExcel.com.
All contents © 1998-2004 MrExcel.com.
Visit our online store to buy searchable CD's with thousands of VBA and Excel answers.
Microsoft Excel is a registered trademark of the Microsoft Corporation.
MrExcel is a registered trademark of Tickling Keys, Inc.