Escolar Documentos
Profissional Documentos
Cultura Documentos
In this tutorial, you will nd a handful of advanced formula examples that demonstrate how to use
Excel's VLOOKUP and SUM or SUMIF functions to look up and sum values based on one or several
criteria.
Are you trying to create a summary le in Excel that will identify all instances of one particular
value, and then sum other values that are associated with those instances? Or, do you need to nd
all values in an array that meet the condition you specify and then sum the related values from
another worksheet? Or maybe you are faced with a more concrete challenge, like looking through
a table of your company invoices, identifying all invoices of a particular vendor, and then
summing all the invoice values?
The tasks may vary, but the essence is the same - you want to look up and sum values with one or
several criteria in Excel. What kind of values? Any numeric values. What sort of criteria? Any : )
Starting from a number or reference to a cell containing the right value, and ending with logical
operators and results returned by Excel formulas.
So, does Microsoft Excel have any functionality that can help with the above tasks? Of course, it
does! You can work out a solution by combining Excel's VLOOKUP or LOOKUP with SUM or SUMIF
functions. The formula examples that follow below will help you understand how these Excel
functions work and how to apply them to real data.
Please note, these are advanced examples that imply you are familiar with the general principles
and syntax of the VLOOKUP function. If not, the rst part of our VLOOKUP tutorial for beginners is
certainly worth your attention - Excel VLOOKUP syntax and general usages.
Suppose, you have a product list with sales gures for several months, a column per each month.
It's the best $100 we've ev
spent!
1 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
Now, you want to make a summary table with the total sales for each product. Merge 2 columns in Excel
The solution is to use an array in the 3rd parameter (col_index_num) of the Excel VLOOKUP Excel DATEDIF - calculating date
As you see, we use an array {2,3,4} in the third argument to perform several lookups within the Compare two columns and
same VLOOKUP formula in order to get the sum of values in columns 2,3 and 4. remove duplicates
And now, let's adjust this combination of VLOOKUP and SUM functions for our data to nd the Change text case to UPPERCASE,
total of sales in columns B - M in the above table: lowercase, Proper Case
If you press the Enter key as usual, only the rst value in the array will get processed, which will unique
2 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
How to perform other calculations with Excel Excel time Excel tutorials
Note. Since all of the above formulas are array formulas, remember to press Ctrl+Shift+Enter
to enter them correctly in a cell.
If we add the above formulas to the 'Summary Sales' table from the previous example, the result
will look similar to this:
3 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
As you remember, you cannot utilize the Excel VLOOKUP function since you have multiple
instances of the lookup value (array of data). Instead, you use a combination of SUM and LOOKUP
functions like this:
=SUM(LOOKUP($C$2:$C$10,'Lookup table'!$A$2:$A$16,'Lookup
table'!$B$2:$B$16)*$D$2:$D$10*($B$2:$B$10=$G$1))
Since this is an array formula, remember to press Ctrl + Shift + Enter to complete it.
And now, let's analyses the formula's ingredients so that you understand how each of the
functions works and can to tweak it for your own data.
We'll put aside the SUM function for a while, because its purpose is obvious, and focus on the 3
components that are multiplied:
This LOOKUP function looks up the goods listed in column C in the main table, and returns the
corresponding price from column B in the lookup table.
2. $D$2:$D$10
This component returns quantity of each product purchased by each customer, which is listed
in column D in the main table. Multiplied by the price, which is returned by the LOOKUP
function above, it gives you the cost of each purchased product.
3. $B$2:$B$10=$G$1
This formula compares the customers' names in column B with the name in cell G1. If a match
is found, it returns "1", otherwise "0". You use it simply to "cut o" customers' names other than
the name in cell G1, since all of us know that any number multiplied by zero is zero.
Because our formula is an array formula it iterates the process described above for each value in
the lookup array. And nally, the SUM function sums the products of all multiplications. Nothing
It's the best $100 we've ev
spent!
4 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
This is very easy, right? And now let's consider a bit more complex scenario. Suppose you have a
table that lists the sales persons' names and ID numbers (lookup table). You have another table
that contains the same IDs and associated sales gures (main table). Your task is to nd the total
of sales made by a given person by their ID. At that, there are 2 complicating factors:
The mail table contains multiple entries for the same ID in a random order.
You cannot add the "Sales person names" column to the main table.
And now, let's make a formula that, rstly, nds all sales made by a given person, and secondly,
sums the found values.
Before we start on the formula, let me remind you the syntax of the SUMIF function:
range - this parameter is self-explanatory, simply a range of cells that you want to evaluate by
the specied criteria.
criteria - the condition that tells the formula what values to sum. It can be supplied in the
form of a number, cell reference, expression, or another Excel function.
sum_range - this parameter is optional, but very important to us. It denes the range where
the corresponding cells' values shall be added. If omitted, Excel sums the values of cells that are
specied in the range argument (1st parameter).
Keeping the above info in mind, let's dene the 3 parameters for our SUMIF function. As you
remember, we want to sum all the sales made by a given person whose name is entered in cell F2
in the main table (please see the image above).
1. Range - since we are searching by sales person ID, the range parameter for our SUMIF function
is column B in the main table. So, you can enter the range B:B, or if you convert you data to a
table, you can use the column's name instead: Main_table[ID]
2. Criteria - because we have sales persons' names in another table (lookup table), we have to
It's the best $100 we've ev
spent!
5 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
an absolute cell reference is a better approach because this creates a universal formula that
works for any name input in a given cell.
3. Sum range - this is the easiest part. Since our sales numbers are in column C named "Sales",
we simply put Main_table[Sales].
Now, all you need is to assemble the formula's parts and your SUMIF + VLOOKUP formula is
ready:
Instead of guring out formulas, you simply specify your main and lookup tables, dene a
common column or columns, and tell the wizard what data you want to fetch.
It's the best $100 we've ev
spent!
6 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
VLOOKUP formula examples: 2-way lookup, nested vlookup with multiple criteria
Excel VLOOKUP not working - solutions for N/A, NAME and VALUE errors
I am calculating something like you mentioned in the part "LOOKUP AND SUM - look up in arr
ay and sum matching values". And, I applied the formula you provided:
However, the outcome seems incorrect. I nally found that the LOOKUP function must be use
d with sorted lookup table (in ascending). In addition, the total amount that Lilly Smith (in your
example) spended should be $122.59 instead of $106.45. The reason of discrepancy is cause
d by LOOKUP function returns wrong value when the lookup table had not been sorted.
So, do you think is there still any ways that I can get the correct result using one formula only
and without sorting the lookup table?
Also, you mentioned that VLOOKUP function cannot be used in array formula but LOOKUP fu
nction can. I wonder is there some tricks that I can know immediately which function can be u
sed in array formula or not??
Reply
Hello Leo,
You are absolutely right about sorting the lookup table in ascending order. I completely mi
ssed this point when writing the formula, a shame to me and my apologies. I've added a co
rresponding note and updated the example. Thank you very much for pointing out this err
or!
As for which functions can be used in array formula, I do not know such a trick. I can only sa
y that MATCH does not work with arrays either, which is why the INDEX and MATCH combin
ation that often helps when VLOOKUP fails does not work in this case. And I cannot gure o
ut any way other than sorting the lookup table and using the LOOKUP and SUM functions.
Reply
Also, my friend recently taught me a way to get this type of total amount. The following is
the formula:
It's the best $100 we've ev
spent!
7 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
Reply
Wow! I would never think of using TRANSPOSE. Thank you very much for sharing!
Reply
Anonymous says:
May 12, 2015 at 11:56 am
hi, I want to create an invoice on excel sheet. on another excel workbook I want to crea
te my stocklist. how do I link the 2 together, sothat when I ll in the invoice, the stock o
n the other workbook automatically changes. please help.
Reply
2 amit says:
August 14, 2014 at 6:57 am
Reply
Hi Amit,
Sorry, I do not understand what exactly formula you want. Anyway, you can download a co
rresponding Excel workbook (a download link is provided at the end of each example) and
copy the formula from there.
Reply
Syed says:
April 17, 2015 at 1:20 pm
Hi,
Pls. send how to calculate sume based on vertical & Horizontal criteria
Reply
Hello Svetlana, I have the below database with more than 500K rows of information. I need to
build a report with months in a row not columns, and from the DB get all sales per country by
month and by code
8 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
Reply
Hello,
If my understanding is correct, you need to get "Country Code Apr-11 May-11 Jun-11 Jul-11
Aug-11 Sep-11 Oct-11 Nov-11" from "Month Country Code Qty_Shipped". If so, you can crea
te a pivot table based on your rst table:
3 In the PivotTable Fields pane, drag the Code column to the ROWS section, the Month colu
mn to the COLUMNS section, and Qty_Shipped column to the VALUES section.
If you get "Count of Qty_shipped" instead of "Sum of Qty_shipped", click on the eld name, s
elect "Value Field Setting" from the menu, choose Sum from the list "Summarize value eld
by" in the pop-up dialog and click OK.
Reply
4 Sarah says:
September 5, 2014 at 9:00 am
Hi
Contracts Days
1234 1
1234 4
1234 2
1234 9
1235 1
1235 6
1235 0
1235 11
1236 7
1236 2
1236 20
1237 1
1237 7
It's the best $100 we've ev
spent!
9 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
What VLOOKUP & SUM formula would I use as column one would not work as it is SUMing ro
ws.
Thanks
Sarah
Reply
hi,
this is shoeb and i want to make formula for below table for sum from date to date
column a column b column c column d column e
Location 16-Sep-14 17-Sep-14 16/09/2014 17/09/2014
Axis Airoli 3rd 0 957 0
Axis Airoli 4th 1113 1758 1080 result should be
Axis Airoli 5th 1205 1237 686 =sum of above dates value
Axis Worli 1st 1499 1790 1522 with match of column a
Axis Worli 2nd 1433 1844 1402
Reply
Hello Shoeb,
I am sorry, your data in the comment got distorted. For us to be able to assist you better, pl
ease send your workbook to support@ablebits.com and include the result you expect to ge
t. We'll look into the issue.
Reply
6 michael says:
October 2, 2014 at 10:25 am
Hi sir,
There is a main table item list, i need to SUM up QTY by each item of month from raw table. I
have diculty to bring out a raw table data which show all items of a year with Item Number,
QTY and Date. Pls advise.
Reply
Hello Michael,
If you can send me your sample workbook and the result you are trying to achieve at supp
ort@ablebits.com, I'll try to help.
Reply
7 Nivi says:
October 11, 2014 at 9:44 pm
It's the best $100 we've ev
spent!
10 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
e customer id in one column, quantity in another and category in third column. And in the ma
in table, customer Id and all the categories horizontal way(rows). So my task should be nd a t
he total quantity for a category for a customer. Can you please help me with this?
Thank you.
Reply
8 Albert says:
October 16, 2014 at 12:19 am
Hi,
was wondering if you could help me with a an issue I have using SUMIF function. Range B10:B
264 I have a list of item names, it can be up to 5 dient item names. I have a single cell with on
e of those item names in it on Cell B278. I have some columns for calculations, stage #, straps,
deliveries and usage amount (H10:H264) per item name. every row from 10 to 264 has all tha
t information for for every stage # for that group of items, not following any particular order.
can be up to 50 stages per item. what I need is a sum of the usage amount for one particular i
tem name throught all the stages, item names and stage #'s come in no particular order. this
is what I came up with:
=SUMIF(B10:B264,"=B278",H10:H264)
but it gives me a " 0 " amount as the result. now the usage amount range is based on a formul
a itself, but provides the number I need to sum throughout.
=SUMIF(B10:B264,VLOOKUP(B278,B10:H264,7,FALSE),H10:H264)
Thanks
Reply
Reply
10 Henri says:
October 21, 2014 at 4:57 pm
In the report that tracks sales I want to sum the YTD budget from the budget le on any given
month ,when the cell in question returns the month.
Reply
11 Prashanth says:
October 22, 2014 at 2:26 pm
i Have Two Sheets from which i need to use Vlookup Formula to get the Value, But i dont kno
w to add Multiple items,
Sheet 1
11 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
Sheet 2
Reply
12 Atul says:
October 27, 2014 at 11:28 am
Hi Svetlana Cheusheva,
I am stucked in problem , where I have cheq number and Amount in one sheet 1
and in another sheet 2 also I have cheq number and Amount.I want to nd the records that h
ave cheq number and Amount ( both) matching in sheet 1 , when we compare two sheets. I tri
ed using di formulas but did not get the desired result. Can you please help.
Thanks in Advance.
Atul
Reply
Hi Atul,
Please check out the following examples of how to search by multiple criteria in Excel:
https://www.ablebits.com/oce-addins-blog/2014/07/29/vlookup-formula-examples/#vlo
okup-multiple-criteria
https://www.ablebits.com/oce-addins-blog/2014/08/13/excel-index-match-function-vloo
kup/#lookup-multiple-criteria
Reply
Gayor says:
May 20, 2016 at 11:34 am
Hi,
I am working with a huge spread that consists of only gures. There are various expense
lines coded with debit and credit amounts. Can you kindly suggest to me which formula t
o use in summing the debits and credits of each expense line in another spread sheet usi
ng their respective expense codes.
Reply
13 Ande says:
October 28, 2014 at 4:40 pm
Hi Svetlana,
Your site is excellent and a great help...my question is 16 columns of data as follows:
Col 1 - Lookup unique item
Col 2 - Data Value
Col 3 - +/- adjustment to col 2 value
Col 4 - Adjusted value
Cols 5, 6, 7 -- Same as Col 2-4
It's the best $100 we've ev
spent!
12 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
Reply
14 MsDClark says:
October 30, 2014 at 2:55 pm
Svetlana,
Could you please further explain your Tip above referencing [@Product] as a table? I don't u
nderstand exactly what steps are being taken, what you are attempting to accomplish or how
it saves time. I feel like I might need to know this timesaver.
Reply
Hello!
I simply converted my range of cells (B1:C9 in that example) into a table. To do this, just sele
ct the cells, go to the Insert tab and click Table.
"Product" is the header of column A, as you can see in the screenshot. When typing a form
ula in the formula bar, Microsoft Excel inserts the table column header automatically (with t
he preceding @) once you type a cell reference that belongs to your table.
As for saving time, when you write or copy a formula in just one cell of the table, the entire
column lls down with the same formula automatically.
Reply
15 Sahal says:
November 3, 2014 at 8:46 pm
Hello Svetlana,
I am trying make use of this VLOOKUP AND SUM method in one of my excel sheet to create a
summary of the items.
But I am not able to make the right formula for it.
Example:-
CODE IN
101101 420
101101 362
101101 83
101101 129
101102 42
101102 53
Reply
Hello Sahal,
It's the best $100 we've ev
spent!
13 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
Sayyid says:
November 3, 2014 at 9:30 pm
Hello,
I have question regarding the last method,VLOOKUP and SUMIF.
How would you write the formula if there is only one table (main table) and you want to nd t
he sum of all the corresponding values of a particular ID?
Help me out?
Thank you.
Reply
Hello Sayyid,
This makes the task much easier since you don't need the VLOOKUP function.
Instead of putting a particular ID in the formula, you can add a cell reference containing it, like
this:
=SUMIF(B2:B12, B2, C2:C12)
For more info about Excel SUMIF, please check out this article:
How to use SUMIF in Excel - formula examples
Reply
Sayyid says:
November 4, 2014 at 1:46 pm
Reply
18 Andrew says:
November 7, 2014 at 4:27 pm
Hello,
I have a question regarding summing together values on a given date from multiple sheets to
a summary sheet. I have tried a sumproduct but keep getting a #REF. The date is in the same
column in each sheet (Column M) and the amount to be summed will be in the corresponding
column P so I need to Vlook up that date. The date is in dierent cells each time. I have nume
rous dates and 50 sheets to sum so do not want to have to sum them manually.
Thanks
Andrew
Reply
14 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
BATCH Q P N
RCDW 10 value
SPW 12
SRW 18
MPLW(CLS)
31
32
MSW 89
90
91
92
Reply
20 Anya says:
November 17, 2014 at 7:05 pm
Hello Svetlana,
Table 1.
ABC
Date Name Value
7/21 Luke 20
7/21 Kip 18
7/23 Luke 19
7/23 Kip 10
7/25 Eric 8
7/26 Eric 13
15 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
Reply
Hello Anya,
You can do this using the SUMIFS formula that allows calculating the sum based on multipl
e conditions. Here is the formula for cell A2 in sheet 2:
It will return the sum of values for Luke higher than 10, in your example it's 39.
Modify the ranges in the formula according to your real data and copy it across column B i
n sheet 2. Hopefully this is what you are looking for.
Reply
21 Chona says:
November 20, 2014 at 6:37 am
Hi, I have this table I want to add the total numbers in column titled AL if the equivalent date is
current year only and dont sum up the old years. Example
Total Leave Used: ____ (here I need the formula cell I9)
If the year in 1st column and second column is equal to current year (this year 2014) then calc
ulate all the AL column ELSE if got 2013 or 2012 dont count the AL. Count only current year so
if 2015 the 2015 only will count and answer will be on cell I9.
Thank you.
Reply
Hi,
I read your post and didn't understand it fully. Although that's because i am searching for so
mething else to work with. My problem is this particular excel sheet.
16 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
Reply
Hello Abul,
I believe your date did not post correctly here. So, if you send a sample workbook to suppo
rt@ablebits.com and include the result you want to get, our support team will try to help.
Reply
23 Anya says:
November 21, 2014 at 9:28 pm
Svetlana,
That is exactly what I was looking for! Thank you for your help.
Thank you,
Anya
Reply
24 Shey says:
November 24, 2014 at 7:57 am
Please give the four arguments when using the VLookUp Function.
Reply
25 Nitij Ad says:
November 29, 2014 at 7:47 pm
Hello,
I need to make a function which will calculate the data till month and will display in Month colu
mn. how could i make the function on this?
for eg, let say, Current month is November, now i want whenever i open the excel document,
Excel should auto calculate and sum the data oct and nov month data and display in total colu
mn)
Reply
It's the best $100 we've ev
spent!
17 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
Please specify if you need to sum data for the last 2 months, for the current month or anyt
hing else? If the row contains only numbers, you can use the SUM function, e.g. =SUM(A2:G
2).
Reply
26 Peter says:
December 1, 2014 at 6:26 am
Hello,
How do I gure out my average sale for a November but for selective days? example: if i want
Mondays for all of November?
Date Sale
Monday Nov 01, 2014 $150
Tuesday Nov 01 , 2014 $450
ect...............
Reply
Hello Peter,
The SUMIFS / SUMIF functions won't do in this case. Try the following array formula (reme
mber to press Ctrl + Shift + Enter to complete it):
=SUM((--MONTH($A$2:$A$100)=11)*(--WEEKDAY($A$2:$A$100)=2)*($B$2:$B$100))
Where $A$2:$A$100 is the column with dates, $B$2:$B$100 is the sum column. BTW, Nove
mber, 1 is Wednesday : )
Reply
27 hassan says:
December 4, 2014 at 2:29 pm
dear
Now the Since the payments are in installments which are present in another sheet
Now i Want to apply vlookup in sheet 1 taking totals of payments against each invoice
Reply
28 hassan says:
It's the best $100 we've ev
spent!
18 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
123121---------------02/10/2014----------50,000---------------?????
524514---------------05/11/2014----------80,000---------------?????
659874---------------08/11/2014----------60,000---------------?????
sheet 2
Reply
29 S says:
December 4, 2014 at 7:11 pm
*my question is how can I dene countries by region in SHEET1 by using the list in sheet2
Reply
My query is after using this functions is there a way to view which all values are getting added
to a cell after using the "SUMIF" function. Eg: my cell displays 800 which is derived using SUMI
F function & 800 displayed by adding 3 enries 400,300,100
how can i view these values?is there a way to it.
kindly guide for the above query.
Reply
31 Emma says:
December 7, 2014 at 10:47 pm
I am trying to use a combination of SUMIFS and VLOOKUP but I can't seems to get it to work.
Usually, this or other forums can always give you an example of someone who has had the e
xact same issue, but in this case I can't nd a solution among previous examples. So, need so
me expert help on this :)
I have two seperate data les, these are extractions from our order program, and they are tw
o dierent 'reports' from this order system.
The problem is that each le contains dierent type of information about the orders, and I ne
ed to merge them by the help of formulas.
A simplied example (the original le contians alot of data, and this calculation needs to be do
ne once a week, so therefore I would rellay like to able to 'automize' it):
In the rst le, columns of interest are: Order number, Order value, Seller-ID.
In the second le, columns of interest are: Order number, Order method
I want to in a seperate sheet (or workbook) be able to summarize the total order value for eac
It's the best $100 we've ev
spent!
19 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
Reply
32 Ashok says:
December 17, 2014 at 4:35 am
plz help me how to In this sheet A1 to F1 value are below 18 its is BOLD and G1 = total of A1:F1
and H1=percentage of G1
i1= below 18 value of total numbers
I want if i1=0 then show the value of H1 or average of G1 and If i1 is not euqal to zero(0) show
value of i1 or below number of values
Reply
33 Muhama says:
December 18, 2014 at 1:35 pm
Thanks for this insight. I request to be assisted I have two excell sheets both having a name a
nd designation, I would like to summarise the amounts collected per name because we run a
credit collections rm and we would like to award incetives.
Joshua
Reply
34 Muhama says:
December 18, 2014 at 2:06 pm
Sheet 1
Collected by Designation Ref CR/DR Credit
Summary sheet
I would like to get cummulative collection per collector in the summary sheet.
Reply
35 Abhi says:
December 24, 2014 at 11:07 am
Hi Svetlana Cheusheva and thanks for the extremely helpful tutorial. Referring to the rst tabl
e above, I'd like to know whether we can have a formula that tells us the average sales for a p
articular product within a particular time period. For e.g.,what was the average sales of Orang
es during the period March to June?
Similarly, on changing the words "Oranges","March", and "June" in 3 adjacent cells, to, say, "Le
mons","April","August", I get the result of "Average sales of Lemons for the Period April to Aug
ust".
Reply
It's the best $100 we've ev
spent!
20 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
ta having a lot number of same codes in other sheet, I want to link other sheet with budgeted
data and Want to sum up all the amounts of same codes in second sheet actual data and sho
w parallel in next column of budget sheet. Can you please advise how can I do?
For Example
Sheet One Budget Data
Account # Budget Amount Actual Amount
regards
Khan Afzal
Reply
37 noman says:
January 6, 2015 at 10:29 am
hello!
i want to use add the values for the particular item appearing several times in a table. how is t
i possible. see table below. for example A was produced two times. i want to use count functio
n to know how many times A was porduced and then add the quantity for A is one location.
element Prdouced
A5
B3
X5
X 15
B 11
A 20
Reply
38 Cheryl says:
January 14, 2015 at 4:04 pm
I have an inventory table that I would like to create a summary page for. Consisting of:
There are several rows of the same part number containing dierent qty's rec'd in each. I wo
uld like to be able to have a formula that would search the whole (same) worksheet for that p
art number and total the qty's in Column C.
Reply
39 Rachelle says:
January 19, 2015 at 1:58 pm
It's the best $100 we've ev
spent!
21 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
e to look for a employee no and his specic salary amount and carry that to a 12 month repor
t and place it in that month. when this is done i want to close of the sheet so that the data in s
heet 2 does not change when i clear the sheet 1 (like a roll over clearing the one sheet but kee
ps the record of it on sheet 2. what do you suggest i use and do i need a vbs and macros for t
his.
Reply
40 Grant says:
January 25, 2015 at 7:17 pm
I have two les of data. One le contains outstanding loans, only one loan for each customer.
The other le contains all the customer loans paid ( a customer could have numerous loans p
aid). The customer can only have one loan outstanding. I am trying to make sure that the cust
omer didn't have two loans outstanding at the time. To make sure they didn't have an outsta
nding from one of the paid loans when it was outstanding. Can anyone please Help?
Reply
41 Sam says:
January 30, 2015 at 6:37 pm
Hi Guys,
You People are doing a great job, I like the way you are helping people and sorting out their p
roblems individually, this forced me to share my problem with you people.
I made a workbook consisting of 30 sheets for gas station, i want to keep daily record of that,
so i need to know how can i make a nal sheet and link those 30 sheets together so they coul
d give me total sales and total expenses of 30 days in the Final sheet ?
Reply
42 Suresh says:
February 4, 2015 at 11:45 am
hi,
Can anyone give the the guidance for the SUMIF formula, i have put SUMIF formula link from
other workbook. after save and closing the work sheet. i tried to open the master le. the link
was not updated and showing "#VALUE!"
If i again open the supporting work sheet, then the link was showing the correct value.
Reply
43 Leah says:
February 11, 2015 at 8:32 pm
Hello, I have a vlookup formula that is working but i want to add a sum to it to not just bring in
one value but the sum of those that match. i've been reading lots of stu online about sumif,
sumproduct, vlookup, index, match and i'm so confused. Perhaps mine is dicult because i n
eed the transpose?
First Tab
Cost Center Totals
1
2
3
4
Second Tab
It's the best $100 we've ev
spent!
22 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
2
2
2
3
3
Reply
44 afrasiab says:
February 19, 2015 at 9:21 am
plz can some one tell me i have two columns one contains serial numbers and other sum ran-
dom values. i want to make a formula that if a user enters a serial number the sum of rando
m number corresponding to it and all the numbers above it should be added and displayed i
n a cell. the input can be varied. plz can in need of help
Reply
45 Sergei says:
February 27, 2015 at 8:26 am
Hi Svetlana,
Thank you for nice tip. I used SUMPRODUCT to avoid using curved brackets.
My question is about array {2;3} , why I cannot use variables instead of numbers? Like {A1;A2}
, function returns error in this case.
Thank you
Reply
Hi..I am stuck..this seems so simple but I can't gure it out. I have a main table with a product
ID and a cell for freight. Each month I run a report and one particular product ID might have
mulitple entries (vertically in the sheet) with a specic freight charge, I need to create a formul
a to look at the product ID # in my main table and in that one cell next to it total the freight ass
ociated with that product ID# from the report I run each month. for example:
A1 A2
Product ID Freight
1 Formula returns freight total
2
3
4
5
6
Lookup Table
Product ID# Freight
1 $2.50
1 $3.50
5 $5.00
5 $5.00
1 $5.00
6 $2.50
So for Product ID# 1 - I need the formula to return $11.00 in the one cell for that product ID# i
n the main table. For some reason I just can't get it to return even a number.
Reply
23 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
Can anyone help me solve this. I am a carpenter and have spreadsheet that will compile a list
of materials, lengths, and quantities. I want to organize it from largest to smallest, and (type c
olumn, then length column) and consolidate like pieces in same row with quantities summed.
Ty in advance Norm
TYPE LENGTH QUANT
4 X 12 15 1/2 1
6 x 6 27 1/2 2
4 X 12 39 1/2 3
4 X 12 51 1/2 4
6 X 12 63 1/2 5
4 X 12 75 1/2 6
4 X 12 87 1/2 7
4 X 8 99 1/2 8
4 X 12 15 1/2 9
6 X 4 27 1/2 10
4 X 12 39 1/2 11
4 X 6 51 1/2 12
4 X 12 63 1/2 13
4 X 12 75 1/2 14
4 X 10 87 1/2 15
4 X 12 99 1/2 16
4 X 12 15 1/2 17
4 X 12 27 1/2 18
6 X 14 39 1/2 19
4 X 12 51 1/2 20
4 X 12 63 1/2 21
4 X 12 75 1/2 22
4 X 6 87 1/2 23
4 X 12 99 1/2 24
Reply
49 amy says:
March 6, 2015 at 10:13 am
Hii
Can you pls hlp me out.
I req to make a database of commodities sent, their actual rate, quantity consuned, selling pri
ce, prot etc.
I am not able to make calculations hoe to use vlookup pls help me out. Its very imp.
Thanx
Reply
50 Scott says:
March 12, 2015 at 8:09 pm
Hi. I have 16 ranges to test a value and return 16 dierent values For example, if d2 is betwee
n 115 and 120, return 2400. But if d2 is between 110-115, return 2300, and so on.....
I attempted to next if (or(d2>115, d2<=120), 2400, if(....... but I keep getting the error of too ma
ny arguments.
SO, if there a better way or can I use the look up if I put my ranges in another sheet?
Reply
51 Vickey says:
It's the best $100 we've ev
spent!
24 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
02/03/1991 Josepf
01/04/1990 John
05/07/1989 Cathy
01/12/1990 Ray
03/08/1990 Edmond
03/07/1988 Steve
03/03/1987 Peter
Want to get the names of the person who born in the year 1990 by using Vlookup.
Thanks
Reply
52 Bob T says:
March 25, 2015 at 5:16 am
Thank you!
Reply
53 Wes says:
April 3, 2015 at 8:53 pm
Could use some Excel wisdom. I have tried tweaking examples given, but am still struggling. I
need to sum data for each month based on a name using 2 tables:
--Table 1--
Jan Feb Mar...
A586
B269
C 3 5 12
--Table 2--
A Bob Smith
B Nancy Jones
C Bob Smith
Based on the name, I need a cell to sum all the values associated with the name for the mont
h. So, in the example above, given "Bob Smith", the cell would return a value of 8 for January.
I tried SUM & VLOOKUP and then MATCH & INDEX combos, and cannot make it work. Can so
meone kindly advise? Thank you.
Reply
54 Steven says:
April 4, 2015 at 3:22 am
I have a column of 16 cells with a list of upgrades depending upon the unit style. I have a table
with the 3 dierent upgrades levels and the corresponding price. I would like to SUM the total
amount of the upgrades in one cell. I thought it should be a sum with vlookup but it's not retu
rning a value. Any suggestions?
When I use this formula it only returns the value from the rst cell. It doesn't give me the total
from the other cells in the lookup value selection.
{=SUM(VLOOKUP(C40:C55,$A$34:$B$36,2,FALSE))}
Reply
55 Vivien says:
April 8, 2015 at 11:00 pm
Hi,
25 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
How can I sum data into below format without using pivot table?
01-Jan 02-Jan
EUR
USD
JPY
Thanks.
Vivien
Reply
Hi Vivien,
Where A is the currency column in your main table, B is data for 01-Jan, and F is the currency
colum in your summary table.
Reply
57 Vladamir says:
April 21, 2015 at 8:50 pm
Hi Svetlana, I copied your formula and my sample data is below. I used the formula, =SUM(VL
OOKUP("Aaron",$I$26:$J$28,2,FALSE)) I was expecting 50, but got 30. Help please.
Aaron 30
Aaron 20
Jack 10
30
Reply
Hi Vladamir,
Since you are working with a single table, you don't need SUM/VLOOKUP. A simpler SUMIF f
ormula works just ne:
=SUMIF($I$26:$J$28, "aaron", $J$26:$J$28)
Reply
58 Vladamir says:
April 22, 2015 at 2:28 pm
Thanks Svetlana! Another question, We got the below formula to work, Thanks for the Ctrl+Sh
ift Enter tip.
120
However, we could not get the same formula to work for the below table. Help please.
It's the best $100 we've ev
spent!
26 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
120
Reply
Hi Vladamir,
Reply
THANK YOU FOR YOUR WONDER FULL POST. I CAN'T REALLY GET IT RIGHT!!!
BSERVATION
FOR FIND SAME MATCH =VLOOKUP(A:A,A:B,2,FALSE) (MIDLE A:B SHEET TO SHEET UR O)
FOR SUM OF MATCH =SUMIF(A:A,A,B:B) (MIDLE "A" IS OBSERVATION TO FIND)
Reply
ADD SUMIF CRITERIA (MIDDLE AREA) BY SELECT THE CELL YOU WANTED TO SUM.
Reply
60 mei says:
April 23, 2015 at 7:03 am
Reply
Hi Mei,
Supposing that Qty. is column A and Product is column C, you can use the following SUMIF f
ormula:
Reply
Anonymous says:
April 29, 2015 at 5:37 am
27 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
there should be a dierence in the price of the per box and per packs... thanks
Reply
61 Vladamir says:
April 23, 2015 at 6:58 pm
Reply
Hi Svetlana!
I have a column of numbers from which I want the top 10% of the sum of the column to be hi
ghlighted. I tried the conditional formatting option. But it doesn't give me a result which is eve
n near 10%.
Reply
63 Jiten says:
May 5, 2015 at 10:20 am
hi,
i have a table in my excel le having dierent Items date wise, eg:-
Date No. Name Item quantity
1/4/15 106 Ab Apple 50
1/4/15 129 Bd Mango 75
1/4/15 235 Jp Mango 39
2/4/15 114 Tk Mango 63
2/4/15 228 Kl Orange 24
3/4/15 0 0 0 0
4/4/15 0 0 0 0
5/4/15 235 Jp Mango 52
5/4/15 106 Ab Orange 28
...
.
.
.
.
and so on date wise, actually i want to monthly date wise quantity in one cell.
which formula i have to use if i need the quantity of Mango for selected date?
eg. if i put a date 1/4/15 and match with item Mango, so that in a one cell the total quantity sh
ould be 114.
Reply
64 Elijah says:
May 10, 2015 at 8:58 pm
Greetings, I am trying to build a workbook that has 3 sheets. One for entry of rst last name a
nd ID number as well as a monetary value like a tip. On the second sheet is the summary pag
e where i wanted the table to return the sum of all information by employee id to give me a t
otal of tips for that employee. The third page i had set up as the reference table where i woul
d enter the First last name and ID number. I tried using your example but still cant get it to wo
rk.
={=SUM(Tips!$c$2:$c$30*IF(Tips!$C$2:$C$30=TRANSPOSE(Employee!$c$2:$c$30),TRANSPOS
It's the best $100 we've ev
spent!
28 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
65 Dan says:
May 26, 2015 at 11:45 am
I have a combination of value such as '1/3 in A1, '3/3 in A2 and '3/6 in A3. Is there a way to su
m the that are 1+3+3 so that in the cell I would have 7 and the next cell 3+3+6 that would equa
l to 12? Basically, I need to sum the 1st values of the A1, A2 and A3 and in the other cell 2nd va
lues of the same cells?
Reply
66 madhav says:
June 4, 2015 at 12:44 pm
Hi,
I have a budget sheet where there is certain budget is allocated in dierent months under a c
ertain budget heading. And I have a reporting month cell where I have a dropdown box inclu
ding the names of the month. Now, what I want is to get the result of the sum of the budget of
the activity when i respectively change the month. I also want to get the value, if I click the mo
nth to march, then i need the cumulative budget value added till march.
Please help
Reply
67 Tawnya says:
June 12, 2015 at 7:16 pm
Hello,
Reply
68 Ishita says:
June 20, 2015 at 7:45 am
hi,
I want to add the individual values of each week for all the months in a year for a list of items.
I need these to be calculated automatically in a dierent sheet. Could you help me out with thi
s.
For example, the main sheet looks something like the below table:
5Jan - 9Jan 12Jan - 16 Jan etc
Opening count 1 2
New 5 7
Closed 4 6
Backlog 2 3
In sheet2:
29 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
Hi All,
Contracts Days
1234 1
1234 4
1234 2
1234 9
1235 1
1235 6
1235 0
1235 11
1236 7
1236 2
1236 20
1237 1
1237 7
1237 5
1237 5
and the other where I want to look this days total up for that contract e.g.
What VLOOKUP & SUM formula would I use as column one would not work as it is SUMing ro
ws.
Reply
Thu H says:
July 8, 2015 at 1:28 pm
Supposing that in Sheet1 the column Contract_number is A2:A16 and column Days is B2:B1
6 ; in Sheet2 column Contract is A2:A5
In Sheet2 choose ALL cells B2:B5 and enter a same array formula in Formula bar:
=SUMIF('Sheet1'!A2:A16,=A2:A5,'Sheet2'!B2:B16)
Reply
70 krishna says:
July 4, 2015 at 12:00 pm
PURCHASE
SL.No GRADE FINISH THIKNESS WIDTH HEIGHT GRAVITY NO COIL QTY
1 304 15.84 0.6 1500 2200 0.000008 1 Yes 15.84
2 316 15.84 0.6 1500 2200 0.000008 1 Yes 15.84
3 321 15.84 0.6 1500 2200 0.000008 1 Yes 15.84
4 309 15.84 0.6 1500 2200 0.000008 1 Yes 15.84
5 LN-1 15.84 0.6 1500 2200 0.000008 1 Yes 15.84
6 LN-4 15.84 0.6 1500 2200 0.000008 1 Yes 15.84
7 200-S 15.84 0.6 1500 2200 0.000008 1 Yes 15.84
8 SA 15.84 0.6 1500 2200 0.000008 1 Yes 15.84
9 430 15.84 0.6 1500 2200 0.000008 1 Yes 15.84
30 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
Reply
71 Navneet says:
July 7, 2015 at 8:22 am
Hi Svetlana,
Need your expertise again!!! I am suppose to make performance meter but can't get the desi
red results. Please have a look;
How to get the average of Conversion% based upon extracting data from below selection:
Select [From Month/Year---> to Month/Year] eg; [2015/June--->2015/July]
Select Name eg; Anju
Result should show Average% of selected Name based upon year and month range selected.
I have been trying vlookup, index & match, sumif but didn't get through.
Reply
72 Thu H says:
July 8, 2015 at 12:25 pm
Hi, Svetlana. I read your article on SUM and VLOOKUP and I practiced some examples about t
he combination of SUM and VLOOKUP/ INDEX. And I have some questions relating to the rst
example in above article.
I want to extract the apples' sales gures for 3 months (Jan, Feb, Mar) separately in 3 cells. I ch
oose 3 cells and enter the same array formula:
My PROBLEM is:
1- When I use the combination VLOOKUP with SUM and received a correct result as the followi
ng:
{=SUM(VLOOKUP("apples",'Monthly sales'!$A$2:$M$9, MATCH({"Jan","Feb","Mar"},'Monthly sal
es'!$A$1:$M$1,0)))} =$26,189
2- But when I try to combine SUM with INDEX in a similar way, I only receive the apples'sales o
f Jan:
- However, when I calculate the apples' sales for all 12 months by using SUM and INDEX (with
col_num =0), I receive the correct result.
Could you please explain for me why the second formula not return the correct result?
I looking forward to receiving your reply. Thank you.
Reply
It's the best $100 we've ev
spent!
31 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
oloumn match.
Reply
74 Farooq says:
July 25, 2015 at 6:24 am
I need a formula to update a sales sheet. as i have multiple of contract numbers in one colum
n and each contract has some value that i want to sum. with pivot table it be done however i n
eed a formula. can please advice...
Reply
75 Brian says:
August 14, 2015 at 7:50 pm
I have a situation similar to the rst example on this page, i.e. fruits in multiple rows and mont
hs as columns. The formula is great for nding one fruit and adding multiple columns in the a
rray. However, I have the same fruit listed in multiple rows. I need to add the months amount
s for each row that the fruit is listed. Is there a way I can do this in a formula without creating
a pivot table?
Thanks
Reply
32 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
I have 50000 entries in excel sheet and i have to do page wise totals. Needs to print on dot m
atrix printer later on. I also need page wise summary of totals.
there are entries like voucher No.s having dierent transactions. I want to club the total amou
nt against the one voucher No. instead of repeating it. it will save paper. Please help
Thanks
Reply
78 Erez says:
August 27, 2015 at 8:32 pm
Hi
I have an expense report that runs chronologically for an entire year. I would like to have a fo
rmula that can sum the amounts by month and by item. I.e. Sum all amounts in column X (hig
hlight entire range) that say January in column Y and "Elect. bill" in column Z. Is this even poss
ible?
Reply
79 shubham says:
September 11, 2015 at 12:01 pm
Hi Svetlana,
Please help me to get a formula to get the total eorts when program and category in diere
nt rows same.
Exampple : from above data
Sl No. 4 & 12 have same program and category, so their sum is 10343.
Reply
Dear i have following example data of 3 dierent clients. Now if i want to sum "Apple", "Orang
e" etc. then what kind of formula should be use. plz guide.
Ahmed & CO =
APPLE 5 2 3 4
ORANGE 4 1 2 3
LEMON 3 4 5 5
COCONUT 2 1 3 4
Sharif & CO =
ORANGE 4 2 4 2
APPLE 6 4 4 5
COCONUT 3 7 4 6
Sharif & CO =
It's the best $100 we've ev
spent!
33 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
Debbie says:
September 23, 2015 at 1:28 am
I have another worksheet where I am entering the courses per instructor and totaling the unit
s
so for Fall 15 semester teacher teaches 3 courses and it totals the units
Cindy 22 40 56 9 units
Bill 71 56 40 9 units
I used a vlookup to calculate the units based on which course was entered and total it by sem
ester by instructor. That works ne.
Categories
GE
Surveys
Lower Division
It should look up the category associated with the course (Above table course 10 is a GE Categ
ory) and count the instances where it nds a course that falls into the GE Category.
GE 15 courses
Surveys 10 courses
Lower Division 9 courses
Reply
Alexander says:
September 23, 2015 at 12:59 pm
Hello Debbie,
Can you please send me your sample workbook at support@ablebits.com?
Reply
82 Dennis says:
September 29, 2015 at 8:37 pm
Svetlana
Reply
Hello, Dennis,
34 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
Reply
84 Ravi says:
October 5, 2015 at 7:04 am
Reply
85 Gary says:
November 2, 2015 at 7:32 pm
Can the VLOOKUP function be used in conjunction with the SUM function to replace the sum r
ange function argument?
Reply
Hello, Gary,
To be able to assist you we need to see your data. Please give us an example.
Reply
86 st3ve says:
November 24, 2015 at 10:49 am
Am trying to sum column m where last 6 characters in column a is in month of dec-15, but I o
nly seem to be summing the rst occurrance of dec-15 in column a. Any ideas? Thanks for loo
king.
=SUMIFS(Fees!M2:M110,Fees!A2:A110,RIGHT(TEXT(A58,"mmm-yy"),6))
Reply
Hello, Steve,
Make sure you press CTRL + SHIFT + ENTER after entering the formula.
Reply
Hello , i would like to know which formula to use if i have a colum of values and i want to point
It's the best $100 we've ev
spent!
35 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
8
23
19
7
And out of that range i would do a formula that would tell me which will add up to 29.
Reply
Hello, Nicolas,
For us to be able to assist you better, please send us a small sample table with your data in
Excel to support@ablebits.com.
Reply
88 JJP says:
December 23, 2015 at 8:58 pm
FP2000 30,000
FP2001 45,000
FP2000 50,000
What formula would I use to grab the repeating "FP's" and then sum them up, without using a
pivot table?
Reply
89 yousaf says:
December 25, 2015 at 12:43 pm
Hello all,
kindly help
i am making result card of students in ms excel.
i need to add marks obtained and total marks
but
there is a restriction
there are total 7 subjects with dierent total marks e.g.
English (100), History (100), Mathematics (85), Chemistry (85), Physics (75), Computer (75) and
Biology (85).
Rest of subjects are compulsory for students except Biology and Computer
Those who attempt computer will not be attempting Biology and vice versa
else if (comp == 0)
{
sum English+History+Mathematics+Chemistry+Physics+Biology
}
%answer is 530 %
%In case some is absent from computer or biology paper we need to add total of their respe
ctive subjects so %
It's the best $100 we've ev
spent!
36 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
{
sum English+History+Mathematics+Chemistry+Physics+Biology
}
Reply
Hello, Yousaf,
To help you better, we need a sample table with your data in Excel. You can email it to supp
ort@ablebits.com. Please add the link to this article and your comment number.
Reply
90 Gk says:
January 4, 2016 at 10:21 am
hi
I have a expense chart in which I2 to I25 have list of categories.
A is for seriel number
B is for date
C is for amount of expense
D for category
E is for mode of payment
F is for expense category
G is for commulative total
Now I want to make a separate sheet which can show all the list of categories and after each c
ategory there should be total of expenses done in that category.
Kindly help me how to do. I wantto make separate sheet for this.
Regards
Gk
Reply
Hello, Gk,
Please check if the Split Table add-in can help with your task:
https://www.ablebits.com/excel-split-table/index.php
Reply
Hi Svetlana,
I have those simple data in excel. How can I sum all the number right below letter A, or B or C i
f the staggering on in order in Excel. Thanks.
ABC
15 18 50
BCA
13 19 23
CAB
30 15 20
Reply
It's the best $100 we've ev
spent!
37 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
Thanks.
Reply
Hello, Dung,
Your data are in A1:C6. Use the same formula for B and C, just change ="A" correspondingl
y.
Reply
93 Helen says:
January 17, 2016 at 9:15 am
Hi
I have managed to get a sumif and combine it with a vlookup and that seems to give me the a
nswers I need, but what I want to do is know when the values I've added reach a dened rang
e of 335-395, and then return me the cell which falls in that range
Thanks
Reply
Hello, Helen,
To help you better, we need a sample table with your data in Excel. You can email it to supp
ort@ablebits.com. Please add the link to this article and your comment number.
Reply
94 Jim says:
February 3, 2016 at 10:34 pm
Good afternoon!
I have a task in which I will be referring to two sheets. On the rst sheet, I will have a name col-
umn (A1:A200) and a quantity column (B1:B200).
On the second sheet, I will also have a name column and a quantity column, A and B respectiv
ely. My task is to search each name of sheet1!A1:A200 for a matching name on sheet2! Where
there is a name match, I need to have the quantities added together. I hope you can assist m
e!
thank you!
Reply
95 Ramki says:
February 3, 2016 at 11:02 pm
Hi Jim,
I have emailed you the excel sheet with the solution which would be more clear to you. More-
over I am not able to attach the excel le in this blog.
Regards,
It's the best $100 we've ev
spent!
38 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
Hello Ramki,
I'm sorry, but we can't seem to nd your email. Could you please make sure you sent it to s
upport@ablebits.com? Please include the name of the blog post and the number of your c
omment.
Reply
Sir
I need help about I have Two Spreed Sheet of Excel I want If Sheet1 Cell F1 is equal to or Great
er than 19 then Copy Sheet1 Cell A1:D1 and paste the same in Sheet2 A1:D1 please help me f
or this formula i have urgently required
Reply
Reply
97 rahul says:
February 5, 2016 at 4:12 am
Hi Maria,
i have 3 sheets in each three sheets column A is the common and dierent no. how do i get th
ese no. not get repeated in my another "nal" sheet.
Second, i want to get the sum of each 3 sheets column A representing data to Final sheet.
So, for First result i tried =IFERROR(VLOOKUP('1st Month'!$D4,'2nd Month'!D4:D22,1,0),IFERRO
R(VLOOKUP('2nd Month'!$D4,'3rd Month'!D4:D23,1,0),IFERROR(VLOOKUP('1st Month'!$D4,'3r
d Month'!D4:D25,1,0),"0"))) formula and not sure if this right.
for second Result i Tried = SUMPRODUCT(SUMIF(INDIRECT(""&test&"''!$D$4:$D$19"),$D4,INDI-
RECT(""&"'!$I$4:$I$19")), Pls Help me in getting the expected answer. Thanks
Reply
98 rahul says:
February 5, 2016 at 10:32 pm
Hi Everyone and anyone, pls. if you know the formula to the given equation pls. share the ans
wer... Thanks
I have 3 sheets in each three sheets in column A is there are common and dierent no. how d
o i get these no. but NOT get repeated in my another "nal" sheet,
Second, i want to get the sum of each 3 sheets for column A representing in dierent cells dat
a to Final sheet.
So, for First result i tried =IFERROR(VLOOKUP('1st Month'!$D4,'2nd Month'!D4:D22,1,0),IFERRO
R(VLOOKUP('2nd Month'!$D4,'3rd Month'!D4:D23,1,0),IFERROR(VLOOKUP('1st Month'!$D4,'3r
d Month'!D4:D25,1,0),"0"))) formula and not sure if this right.
for second Result i Tried = SUMPRODUCT(SUMIF(INDIRECT(""&test&"''!$D$4:$D$19"),$D4,INDI-
RECT(""&"'!$I$4:$I$19")), Pls Help me in getting the expected answer. Thanks
Reply
39 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
ula.
As for summing the corresponding values from three sheets, it sounds like data consolidati
on is the best option for you. Please see this blog post for detailed steps:
How to consolidate data from multiple worksheets
Reply
99 Steven says:
February 7, 2016 at 5:58 am
What formula can return all possible combinations of numbers that add up to a given total. F
or example, let's say the given total is the number 137. Which combinations of numbers woul
d add up to 137? To make this more interesting, no number can be repeated, and no more th
an 5 numbers can ever be used in one single try. So 7+35+45+49+1=137, but many more co
mbination do as well. Thank you.
Reply
Hello Steven,
It is an interesting task, but I'm afraid we can't calculate it using formulas. It would be useful
to nd a Maths student with a good knowledge of VBA :)
Reply
i have some invoices in sheet1 and i want to make a summary with product name and Quanti
ty in sheet2
PRODUCT QTY
AREIL 45G 96
AREIL 500G 12
SAFEGUARD 115G W 72
SAFEGUARD 115G L 144
H&S 200ML CC 6
H&S 200ML B 12
PANTENE 90ML SS 24
PRODUCT QTY
JELLETT BLUE 2+ 24
MACH 3 RAZOR 3
AREIL 45G 24
AREIL 1000G 6
SAFEGUARD 115G W 144
AREIL 500G 6
Reply
Hello hope that someone can help me? i need a formula that allows me to sum up the hours
worked a day, the problem is it needs to be by name for example.
how can i make excel add the worked hours behind carlos his name?
It's the best $100 we've ev
spent!
40 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
helo,
please I need your help.
Reply
I need your help, I just want to one cell contain text in other cell list i think formula =ISNUMBE
R(FIND(E47,B3:B991)) in this E47 is my targeted cell
Reply
Dear Sir i have 3 sheets of dirent subject having same table... and i want to nd the result in
one click... for example i want to nd the result of pecentage on single cell by given roll numb
er
Reply
Table :
A -2
A4
A -3
B -4
A -4
B7
I need formula to calculate only for negative sum from column 2 and vlookup for column.
Reply
HI
I want to count the value in subgroup for example:
A
B
C
d
d
d
C
d
It's the best $100 we've ev
spent!
41 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
I want to know how many "d" are in the rst "C" group
Or how many "d" are in the rst "B" group
"Count "d" from current value to same value in column.
so tnx
Reply
sheet one - GL code, vendor name and Feb amount in column. One vendor has multiple GL c
odes
Sheet two - Same has above but amount is for JAN
I need to bring jan amount to sheet one next to feb amount to see the varience
since one vendor has multiple gl codes just vlookup formula is not working. What i need to do
here
Reply
Hi
Require a help
In the rows if i add some way i should be getting 25161 ( example 5000+15161+5000) will matc
h my 25161,
Reply
Great Forum for learning! really appreciate Svetlana & Teams eorts. Thanks!
Reply
Hi,
I have a excle worksheet. in that there are every month salary detail in dierent month sheet.
I want to get total of salary of the year in one sheet against his/her name. How to do it with Vl
ookup formula. Kindly suggest me.
Thanks...
Reply
can i be able to do sum of the various values having base as sku code (ex:20001218 -1
It's the best $100 we've ev
spent!
42 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
i need to calculate the average value for male and female students in class. but their title in di
erent page and nal mark in dierent page. need to do it using vlookup..
Reply
hi,
I am using 2 sheets with daily sales in sheet1 and inventory in sheet2. I want to put sum form
ula in sheet2 so that it pick an item no and goes to sheet1, locates its occurrence and than calc
ulate from values in corresponding columns. But the tricky part are, rst, values are in 3 colu
mns - sale(-), return(+) and stock delivery(+). Second, sale for same item will happen on multip
le days, so all will be factored in and entered before the item in inventory list.
I have input an array formula with sum and vlookup in sheet 2. It gives value for only one colu
mn and one row.
Please help.
Reply
Hi,
Thx
Reply
Reply
Hi Svetlana,
I have a data in which rst row contains date and other three rows contains their pageviews, v
isits. I need your help to merge date wise data in which i can the total visits pageviews and as
well as visitors for all dates seperately this database contains 4700 rows.
43 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
Thanks,
Nandan
Reply
You can use Paviot Table. It will surely convenient for you.
Paviot Table can be added from Insert tab.
Reply
one problem mostly i face when i update the advance of employee .the problem is . there are
three column
mukesh 84 2500
rahul 90 2000
mohit 54 500
sabir 92 5000
is there any formula that add the amount that is double to a employee
by a formula in excel sheet when i prepare salary and adjust the advance .
Reply
i want lookup A3 value in range B3:B10 if cell value verify then result show with text and com-
mas
Reply
Hye,
I'm meeting trouble in doing sum of dierent vlookup values. I try explain my problem with a
n example given below:
| A |B |C |D |E |F
1| 02-01 |48 |22 |38 |54 |98
2| 03-01 |20 |105|111|50 |40
3| 03-02 |35 |40 |67 |66 |901
4| 03-03 |88 |50 |100|47 |200
In given above table I want to sum all values vertically in column F with reference to Column A
but want to add only that values of which code in Column A start with 03.
Please guide me. You can mail reply on my mail ID if convenient. Thanks
Reply
I have been struggling to fulll my boss requirement but still unsuccessful. Maybe someone c
an help me with the quickest way.
It's the best $100 we've ev
spent!
44 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
Defects 1 10 100 50 60
Defects 2 12 50 20 30
I want to create a Summary page whereby I just need to key in the following criteria:
With this 2 criteria typed in, all the defects will automatically add up but still separated still into
Defects 1 and Defects 2.
In other words, the left hand column will still have Defects 1 and Defects 2 and so on.
Reply
Good Day! What is the formula for the =Sum(Vlookup) For vertical addition of data?
Regards
Tlhogi
Reply
when i create invoice ...then automatic stock credit or debit.,amount plus in customer accoun
t.,when enter part number then automatic ll part discription....i wish this formula
Reply
Reply
Hello Svetlana,
What you have shown is simply amazing and I sincerely appreciate the time and eort you ha
ve put. Thanks a lot!
I have a small query which I believe has no solution but would like your opinion on. So I am w
orking on a case similar to SUMIF and VLOOKUP combination example above, but the diere
nce is that my lookup array is spread across multiple worksheet and not just one main table.
Any thoughts on how to resolve it? I was thinking using SUMIFS and VLOOKUP maybe, but not
It's the best $100 we've ev
spent!
45 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
Hi,
I have a fairly simple task that I just can't gure out a formula for it. I have a range of account
# that I need to nd and sum on one cell.
For example,
I need to sum account numbers 2001-2020. All accounts from 1000 to 3000 are listed in colu
mn B (in another tab within the same work book). Column C in that same tab has the account
values that I need to sum.
I tried the SUM-LOOKUP combo but sorting in ascending order is not an option for me. What
other formula can I use to get to my desired result?
Reply
Regards
Saurabh Sharma
Reply
Hi there,
Your tutorial is good but i'm struggling to adapt it to my situation and wondered if you could h
elp?
I have a workbook for timesheets that contains 53 sheets, one for every week. Each sheet is f
ormatted the same and shows the job number and job name in rows above one and other in
the rst column. These rows are then combined in the next column to show total hours work
ed, then the next columns represent the actual days of the week and hours worked per day.
I would like to have a summary table at the end of the workbook that tells me total hours wor
ked in the year and total hours spent per job number. i've tried a variety of sum and look up c
ombinations and nothing has worked yet.
any pointers you can make would be greatly appreciated.
Reply
Hi,
I have to nd sum of sale qnty using vlookup
46 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
Hi, I have a worksheet with a matrix of names (6 columns of diering names in each rwo) and
in another column I have either "Won" or "Lost".
So I have a formula: =COUNTIFS(TMT!$F$2:$K$29,B4) which nds and counts all the times the
person's name in B4 exists. This works OK.
But when I add another selection =COUNTIFS(TMT!$F$2:$N$29,B4,TMT!D:D,"=Won") I get an e
rror "A value used in the formula is a wrong data type". However if I enter only the second sel
ection on it's own I get no error.
Any ideas?
Reply
sitesh says:
August 23, 2016 at 1:29 pm
Reply
Hi.,,
For Ex:
Sharat
Fruits Numbers
Apple 190
Banana 111
Mango 503
Geeta
Mango 113
Banana 190
Apple 190
watermelon 190
Ram
Banana 128
Apple 147
watermelon 180
Mango 114
..
...
Reply
47 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
and
Basically I'm trying to create a logic that says sum up the cashows on the LG tab only if the a
ttribute attached to the plancode is Adjustable and this part is on the Attributes Matrix tab.
Reply
i have tried this with sumif(vlook up) but i dont get the esult and i cudnt nd my error in formu
la
Reply
Hi,
I am trying to combine a SUMIFS and a VLOOKUP. My data set is big, and I run into problems
when a name that used to be in the data is deleted from the data. That is why I want the foru
mla to lookup at the ID number of the person in my spreadsheet rst, and then match it with t
heir value in the data tab. Some people are in there twice, same ID but dierent two dierent
values. I was a forumala that will match to the rst and then match to the second.
Reply
Urgent
Reply
Hi All
I don't know if this is going to be a bit of a stupid question, and I hope I make myself as under-
standable as possible. :)
Book 1
- I have one Excel workbook with individual invoices for multiple customers. For example, the
most important info:
It's the best $100 we've ev
spent!
48 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
Book 2
- I have another Excel workbook with the same as above, but they are credits relating to those
invoices/customers:
Column A - Customer name (Same as above - more than a few lines for one customer, many
dierent customers)
Column B - Date
Book 3
- The other Excel workbook is a consolidation of the above. I need to consolidate the above b
y customer, by month (working on November 2015 to October 2016 MTD). I considered doing
a VLOOKUP by customer, but I don't know how to do a SUM VLOOKUP to add together all invo
ices for one customer in a date range from Book 1 onto Book 3, then the same for the credits
from Book 2 to Book 3, so that I can calculate the dierence.
I hope someone can assist me with this, and that I have made the question quite clear. :)
Thanks in advance!
Reply
Hello,
Is it possible to sum a row of numbers only if those numbers are from a formula? I am using
a forecasting spreadsheet and any future gures are input manually by the budget managers
as a 'guess'. However the actual spends for each month up until that point are found by using
a VLOOKUP formula.
Basically I want to only sum the numbers if they are from the VLOOKUP formula.
Reply
I have a spreadsheet for monthly/yearly overtime worked per job position at my company. P
eople can also be charged time and a half or time and three quarters, depending on their sch
edule.
I need a way to search column b for job position and column c for type of schedule and if thos
e equal PositionA ScheduleA to add column f's numbers all together in Cell Y. If PositionA Sch
edule B, add them together in Cell Z.
Reply
Hello Dear,
i know sumif formula. But i don't no vlookup sum formula that means ID Value Total. for Exa
mple,
Sheet1,
ID Value
A1 100
B1 200
C1 300
It's the best $100 we've ev
spent!
49 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
B1=200+300=500.
Reply
Hi, I hope someone can help. I would like to add up 2 sets of 2 columns with multiple codes fo
r certain results.
For example/
Thanks in advance
Reply
Reply
Hi all
Could you please tell me how in range of say some amounts, how to arrive at a particular su
m amount. Suppose I have 50 Invoice amount due from a customer. I received a payment wh
It's the best $100 we've ev
spent!
50 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
Thanks for the great article and I'm hope I'm not repeating a previous question...
When writing in the numbers of your array {2, 3, 4, 5, 6} and so on, is there a way to list an enti
re range of values at once? Say if you want to sum indexes 2 to 100. I noticed you mentioned t
he index function if I'm trying to sum over hundreds of columns for a given criteria. Should I n
ot be using this array vlookup option for this case?
Happy to investigate another link if the answer is already out there. Pass it my way.
Ed
Reply
Hi
As part of a larger problem I want to calculate the sum of top "n" values, where n will be user
dened.
The sum will be calculated for an array,which has been calculated using several conditions usi
ng array formulas.
Eg: After all the conditional array formula, say I am getting an array as {0;23;45;0;0;10;1}
This array is dynamic based on the conditions provided. So, is there a way to nd the sum of s
ay rst 3 or rst 4 non zero numbers from this arrray ?
Thanks in advance
Reply
Does the Vlookup and Sum work with repeated values? for example if you had 2 columns with
the name apples and want to sum both of the totals for both of the apple columns into one co
mbined total. I am trying to generate a spreadsheet that will wind repeating cost codes and a
dd the repeating cost codes for me. Please let me know how i can go about this!
Reply
So close. The solution I used was SUMIFS which is similar but uses two columns to grab info fr
om a third.
Thanks.
Reply
Hi, So I have a column A of name of people and their spending in a year in Column. I need to c
alculate how much each person spent by looking up the name so that if new entries are adde
d the SUM automatically gets updated. Is their a way?
Reply
51 de 52 20/01/2017 13:54
Excel VLOOKUP with SUM or SUMIF function formula exa... https://www.ablebits.com/office-addins-blog/2014/08/05/exce...
Reply
hi,
am looking for a formula where I can average 7 values from 8 by taking the rst 5 and choosi
ng the best 2 from the remaining 3 values.
Reply
I have a spreadsheet that adds up daily usage of a material and subracts from the balance. It
also adds that incoming inventory back in.
Example =(K3781+I3782)-(J3782)
Currently I manully enter the projected usage into this cell, this then gives me the projected b
alance.
Example =(K3781+I3782)-(J3782)-940-568
I would like to be able to export the information into another tab and excel calculate for me. T
he problem that I have is that multiple usage on the same date. I dont want to sum because I
would like to associate the usage to a partiacular number. I can also have the same number o
n the same date that drives usage. Would it be possible submit an eample of what I am trying
to explain?
Reply
Post a comment
Name
Send
Unfortunately, due to the volume of comments received we cannot guarantee that we will be
able to give you a timely response. When posting a question, please be very clear and concise.
We thank you for understanding!
It's the best $100 we've ev
spent!
52 de 52 20/01/2017 13:54