R
Rob Barnard
Hi,
You don't need a macro to do this; you can make use of
formula arrays.
Set up a fifth column which is just quantity * price
On your summary page type in formulaa similar to (not
forgetting to add worksheet references):
SUM((A2:A6="name1")*(B2:B6="A")*(E2:E6))
SUM((A2:A6="name1")*(B2:B6="D")*(E2:E6))
SUM((A2:A6="name2")*(B2:B6="A")*(E2:E6))
SUM((A2:A6="name2")*(B2:B6="D")*(E2:E6))
You'll need to press Shift+Ctrl+Enter to enter the formula
otherwise you may get incorrect results.
To solve your problem with name changes you should
reference the names from the summary sheet rather than
hard coding them into the formulae.
You can count the number of operations using:
CountIf(A2:A6,"name1")
Hope this is useful
Rob
You don't need a macro to do this; you can make use of
formula arrays.
Set up a fifth column which is just quantity * price
On your summary page type in formulaa similar to (not
forgetting to add worksheet references):
SUM((A2:A6="name1")*(B2:B6="A")*(E2:E6))
SUM((A2:A6="name1")*(B2:B6="D")*(E2:E6))
SUM((A2:A6="name2")*(B2:B6="A")*(E2:E6))
SUM((A2:A6="name2")*(B2:B6="D")*(E2:E6))
You'll need to press Shift+Ctrl+Enter to enter the formula
otherwise you may get incorrect results.
To solve your problem with name changes you should
reference the names from the summary sheet rather than
hard coding them into the formulae.
You can count the number of operations using:
CountIf(A2:A6,"name1")
Hope this is useful
Rob