Formerly Best Training
© 2025 STL. All Rights Reserved.
All prices offered for business users and exclude VAT. E&OE
2nd Floor, CA House, 1 Northey Street, Limehouse Basin, London, E14 8BT. United Kingdom
Forum home » Delegate support and help forum » Microsoft Excel Training and help » Vlookups
Resolved · Urgent Priority · Version 2010
Andrea has attended:
Excel Intermediate course
Excel Advanced course
Excel Advanced course
I want to create a vlookup/if statement whereby the value for one person could be 2 or 3 different amounts added together in one workbook, what would the formula be?
Hi Andrea
Thanks for your question.
There are different ways in Excel to summarise total amounts for each person. Either use a formular function, a PivotTable or by the Subtotal feature. (Data, Subtotal).
Here's how to total amounts by person with a SUMIF function.
------A---- ------B------
First Name Amount
Steph 9
Diane 6
Diane 20
Diane 15
Anne 8
Steph 13
Terence 14
Terence 10
Diane 9
Linda 9
Diane 20
Steph 13
Diane 15
Linda 20
Amount Summary
Steph 35
Diane 85
Anne 8
Terence 24
Linda 29
=SUMIF($A$2:$A$16,A21,$B$2:$B$16)
This formula works out that Steph's total of 9, 13 and 13 is 35
=SUMIF(Range of names, A21, Range of amounts)
A21 is the criteria ("Steph") and when this founction is copied down it calculates the total for Diane.
Also the $ signs are needed to fix the ranges so the references don't change whn the formula is copied.
Hope this helps with your question.
Regards
Doug
Best STL
Notice: This is an automated message. Due to inactivity, this forum post will be marked as 'resolved' if there are no further responses in the next 5 days.
Fri 27 May 2016: Automatically marked as resolved.
|
Excel tip:Make a quick copy of a worksheetHold down the Ctrl key, then click and drag on a sheet tab to make a copy of that sheet. Though this process usefully copies the formats of the original sheet, note that any Range Names you have on the original sheet will be duplicated too. |
We'll call during UK business hours
Server loaded in 0.07 secs.