Summing In A VLOOKUP Function

Dec 17, 2008

I have a vlookup function that is looking up a range of cells. I would like it to look in the range and then sum up all of the values that meet the criteria. At the moment it will only bring back the value of the first match it finds in the range, I would like it to bring back the sum of all the values it finds in the range, is this possible? Example:

Vlookup(Jan-08,$a3:$c$7,column 4 values, 0), if Jan-08 is listed in the range more than once, I would like it to add up all the values in column 4 that match.

View 4 Replies


ADVERTISEMENT

Summing Across Multiple Sheets By Name - VLOOKUP?

Jul 7, 2014

I have Mac:2011 version of Excel. Here's what I'm trying to do... I have 5 sheets, 1 for each week of a typical month, and then a 5th sheet in which I want to add cumulative values.

In the first four sheets, column A is the name of a person. Columns B through H are daily performance values. Column I is the weekly sum of columns B-H. I am sorting each of these first 4 sheets by column I, from highest-lowest; so a person's row position changes from sheet 1 through sheet 4, based on how well they did in comparison to other people.

I should also mention that a person may or may not appear in each sheet for weeks 1-4. They might be there in week 1, miss week 2, and be back for week 3 and 4, etc.

Now, in sheet 5, the 'cumulative values sheet', is where I'm having difficulty. Column A is again, where the names of people should go. Columns B, C, D & E are what I want to be the sum values from Weeks 1-4. And finally, Column F is a sum of these columns B-E, yielding a monthly total. Here's the logic of what I want to do...

Part 1:

Look at the name of the person in [Sheet 1:Column A through Sheet 4:Column A]... If a person's name from [Sheet 1:Column A through Sheet 4:Column A] doesn't appear in sheet 5, column A, copy that name to sheet 5, column A. Otherwise, move on to part 2...

Part 2: Look-up the week 1 value of the Sheet 5: Column A name, from sheet 1, and copy the associated sum value of that name (sheet1:column I) to Sheet 5:Column B. Repeat for Sheet/Week 2 value to Sheet 5:Column C... Week 3 to Column D, and Week 4 to Column E...

And finally, sum the values of Sheet 5, Columns B-E to column F. Sort highest-lowest.

No issues with the summing function, but I'm not sure the best way to achieve 'Part 2'. I've been fooling around with VLOOKUP, and have had some success with =VLOOKUP(A2,Week1!A2:I26,9) for column B, =VLOOKUP(A2,Week2!A2:I26,9) for column C, etc... but it's only performing properly for my first row, and then I mostly get #N/A. So what am I missing? Or is there an alternate function that would achieve this in an easier fashion?

View 5 Replies View Related

How To Vlookup Summing Similar Cells

Dec 18, 2013

I have attached the file, in the last sheet (Consolidated) i need to get the data from all the previous sheets, my problem is that whenever i have similar cells the data that is showing is only the first value and not the sum of all values,

View 1 Replies View Related

VLookup - Involving Two Worksheets And Then Summing Data

Feb 10, 2014

I'm looking for a formula that would look up the individual employee (i.e. Name1 for example) in the January sheet and then look for and sum any amounts that have a number and a symbol as reflected in A2 through A10 (8V, 4V▲,etc), which would then be calculated with a similar formula for the February sheet, specifically the time period between 1/26/14 and 02/08/14 as indicated above.

As employees can switch shifts, the formula would have to locate now in February where employee (Name1) is and find that row for the same symbol/number calculations for this same time period in that given month. Currently I'm using an array formula which can be seen in the attached file in cell I4. The problem is that the formula assumes that Name1 is always in the same spot in all monthly sheets which isn't the case month to month. The formula looks like this without the vlookup portion:

[Code] .....

I also need to do a similar vlookup or match, etc with this formula too:

[Code] .....

Attached File : sample payroll.xlsm‎

View 7 Replies View Related

Summing Multiple Table Values Using VLookup

May 20, 2013

I'm trying to get a more manageable formula for totaling multiple values in one box using Vlookup. For clarification this is what I mean:

On spreadsheet A, I have this table:
[IMG][/IMG]

The value in B2 is the name of the item I am making and the items below are the components required to manufacture said item. In order to build them, I need so many (Column E) and I have indexed my remaining values simply by doing =E3-H3. To build each component requires minerals which are listed on a seperate sheet (Sheet B) as such:

[IMG][/IMG]

The only Value in the above table I am truly interested in is "Current" (E Column).

Back on SheetA, I have a second table which adds all of the component minerals up for a grand total of the minerals required to make the item in B2 as such:
[IMG][/IMG]

Now, this is my issue: The code for N3 is incredibly unwieldy:

=IF($F$3>0, $F$3*VLOOKUP($L3,
'Component Materials'!$A$15:$E$21,5,FALSE))+IF($F$4>0, $F$4*VLOOKUP($L3,
'Component Materials'!$A$25:$E$31,5,FALSE))+IF($F$5>0, $F$5*VLOOKUP($L3,
'Component Materials'!$A$45:$E$51,5,FALSE))+IF($F$6>0, $F$6*VLOOKUP($L3,
'Component Materials'!$A$55:$E$61,5,FALSE))+IF($F$7>0, $F$7*VLOOKUP($L3,
'Component Materials'!$A$65:$E$71,5,FALSE))+IF($F$8>0, $F$8*VLOOKUP($L3,
'Component Materials'!$A$115:$E$121,5,FALSE))+ IF($F$9>0, $F$9*VLOOKUP($L3,
'Component Materials'!$A$135:$E$141,5,FALSE))

I set this up to look at a specific value and if it was >0, it would multiply that value times whatever value it found on SheetB ("Component Materials"). The size of this formula makes this difficult to migrate to further items, so I would like to reduce the complexity of the formula.

View 7 Replies View Related

Summing Totals Through IF Function...

Nov 10, 2008

What I am trying to do is have the formula look at the order statuses in column E and total the dollar amounts attached to the status of those orders and sum them up. So, for example, if I wanted to see everything "On Hold" I'd enter this formula I am trying to figure out, and it would should me the sum for everything on hold.

Right now, I've been working with these formulas, but noticed there would be a problem (most likely) with Excel not looking at each occurence of the word "On Hold"; it would more than likely just stop at the first one:

=IF(E2:E51="On Hold,I2,"0") or =IF(E2:E51="On Hold,I2:I51,"0")

and

=IF(VLOOKUP("On Hold",E2:E51,1,FALSE)="On Hold",I2,"0")

But neither work and usually get #VALUE!

I found this does work:

=IF(E2="On Hold",I2,"0"), but then I'd have to do:

=IF(E2="On Hold",I2,"0")+IF(E3="On Hold",I3,"0")+etc.....

But the end result would be a function for only one cell that contains like over a hundred calculations. I'd be time consuming and a pain to maintain.

View 2 Replies View Related

Summing Using Index Function

Jul 9, 2009

I am trying to sum values on sheet1 in column CR using the index function, but it comes up as #ref!

see formula below

=INDEX(Sheet1!1593:1609,96)

View 9 Replies View Related

Countifs Function Not Summing Correctly

Jul 13, 2012

I have yet run into another road block, which is stated below.

=SUM(COUNTIFS(AF20:AF111,{"*CoSale**","*Reo**"},AL20:AL111,{"Seller - Core","Seller - Non Core"}))

I can not get that formula to sum correctly. I can get them to sum if I seperate, but not with the countifs formula above. I am stuck at this point. So, any insight would be great. It is supposed to add up to 13, but I am getting a sum of 7.

REO-Svcr
Seller - Core
CoSale-Pri
Seller - Core

[Code]....

View 3 Replies View Related

User Defined Function For Summing Multiple Criteria

Aug 5, 2008

I am in need of creating a User Defined Function in Excel that will sum numeric values based on two text criteria. I have a large set of data in an Excel worksheet that includes a column for " Market Type" and a column for "Location ID". I would like to develop a User Defined Function that allows a new or inexperienced user of the template to use the User Defined Function to select first a "Market Type" then select a "Location ID" and get the sum of the amount those values represent. A SUMPRODUCT function in Excel works for this, but can be awkward or intimidating for a new or inexperienced user. For that reason, I am specifically looking for a User Defined Function that will simply the formula for them while at the same time maintaining the degree of accuracy I need.

View 9 Replies View Related

Nesting Index / Match Function Within Vlookup Function?

Dec 3, 2013

let me start by saying that I know an example workbook would be useful here, but the part I'm struggling with is the [managementroster.xlsm] file, and there is A. no way I can release it to the internets and B. its so huge/complicated I couldn't even begin to reproduce a portion of it, scrubbed of data, and hope to maintain its functionality in a meaningful manner.

[Code]....

This formula checks a staff number on this spreadsheet, and then goes and looks at the staff number on the roster. Once found, it returns that staff members roster, but changes any manager codes in the MRC list to Mgr, and changes all other roster codes to Free.

I now need this formula, before altering roster codes to Mgr or Free, to only return codes that are a match for another table (or after really. I don't particularly care, so long as only codes are shown that match data from another table). I think an index/match function would do the trick, but this forumula is already at the edge of my excel ability, nesting another function within it is completey beyond me. The relevant cells for the index/match function would be:

This first Match function targets the column. $E3 is the date required, $BA$1:$DN$1 is the range the dates are entered in
Match: Lookup value = $E3
Lookup array = '[ManagementRoster.xlsm]Vacancies!'$BA$1:$DN$1
match type = 0

This second Match function targets the row. $A$4 is the department name, $B$434:$B$452 is the range where all departments are entered

Match: Lookup value = $A$4
Lookup Array = '[ManagementRoster.xlsm]Vacancies!'$B$434:$B$452
match type = 0

Index: array = $BA$434:$DN$452

So I think my final function is

[Code] .....

But I have absolutely NO idea where it would fit within my first formula, or how to code it so that my original formula only reproduces results that are found in both sheets, or anything.

View 2 Replies View Related

Vlookup Function Together With An Offset Function

Oct 26, 2008

I am trying to use the vlookup function together with an offset function but i am not getting it to work properly.

The situation is as follows:

I have a column E in which i use the vlookup function to find its corresponding value in B which in turn refers to a named range. However, the figure i want the function to return is 2 columns to the right and 2 rows above the value which the vlookup funtion finds in the first column.

I have though of using the offset function, but i cannot figure out how to make this work.

View 8 Replies View Related

How To Use Mid Function In VLookup

Sep 9, 2009

Using the Mid function in Vlookup. I want to get the mid of the value which i get using vlookup.

Example: if my Vlookup gives the value as "GSC 03-Parts & Service Systems-GSMS-Test " i want to use the mid function to get the a new value as 03.

I'm using the below code :

[Code] ....

Attached File : VlookMid.xls‎

View 5 Replies View Related

Use Mid Function In Vlookup

Sep 9, 2009

using the Mid function in Vlookup. I want to get the mid of the value which i get using vlookup. Example: if my Vlookup gives the value as "GSC 03-Parts & Service Systems-GSMS-Test " i want to use the mid function to get the a new value as 03. I'm using the below

View 3 Replies View Related

Vlookup Function

Oct 23, 2009

vlookup function. find whats wrong with my code

View 3 Replies View Related

Vlookup With If Function

Jan 25, 2009

IF(ISNA(VLOOKUP(E24;Sheet1!$A$6:$N$25000;10;FALSE))=0;"NOT FOUND";"FOUND")


This Formula doesnt seem to work, it shows me either every row with found or not found..

If there is a match to E24 in other sheet and has a value in column 10 it should say found otherwise not found.

View 11 Replies View Related

Using If Function And VLookup

Jul 18, 2012

How do I use excel to refer one cell as a constant value while the second cell varries as the cell value changes along multiple sheets.

View 7 Replies View Related

Using Vlookup On Trim Function

May 1, 2014

I'm taking 3 very different reports and consolidating them into one manageable readable form. Only problem is that no 1 report has the same info. I've created a key to form pick up the same information that is read differently. As my spreadsheet grows so do the formula issues. I've had one report that has been the biggest pain to break apart. It takes several things and consolidates them, ex: big 2014 girl - dog 20145

I'm using a trim formula to read the last 5 digits that is the only consistent part of the string. =right(J3,5) to trim what i need to read (20145). this formula works. I'm than trying to preform a Vlookup based on what is returned from the trim. The trim number is located in a separate tab as the "key" 20145 = golden Labradors. formula for vlookup that works by itself, but throws up a blank cell when i point it to the trim cell.

=iferror(vlookup($A2,Info!A:ZZ,2,False)" ")

$A2 = the info 20145 from the trim
Info! = is the tab with my 20145 = golden Labradors
A:ZZ = the range in which i need it to find 20145
2 = the second column where it should find 20145 = golden Labradors
False = exact match.

Why my formulas work separately but not when used together? The Vlookup will work if I type in the number 20145. I don't want to type 20145 anymore. I want to use the trim and have the vlookup notice the number pulled from the trim.

View 2 Replies View Related

Using INDIRECT Function For VLOOKUP?

May 8, 2014

I am having issues using the INDIRECT function to lookup data from a sheet with the same name as that appearing in a given cell. For example, in cell D27 i have the text "S1_358_810" (Not including quotations). I also have a sheet named "S1_358_810". My formula is as follows;

Formula:

[Code] .....

However this is returning #N/A. There is a list of numbers in sheet S1_358_810 in column N and from that I want the value in column Q (thus 17).

View 11 Replies View Related

VLOOKUP W/ LEFT Function

Dec 7, 2009

Function sequence giving me "N/A": =VLOOKUP(LEFT(C6,5),H:I,2,FALSE)

Basically, I have numbers that each start with a unique sequence. The first 5 numbers of that sequence represent a certain cell carrier.

What I want to do is have the function look up the first 5 characters of a cell and depending on the 5 characters, I want it to return a certain value.

My idea with the vlookup was to have the lookup value be the first 5 digits and then in my table, it would take only those 5 digits and return a value I have specified in the second column.

View 10 Replies View Related

VLOOKUP Or INDEX Function?

Jan 27, 2010

I tried with the VLookup, and HLookup and neither one worked for me. I have a reference table with all the data, and then input sheet where I want to bring this data by using one of the excel function. ie. When I enter office name on the top of the input page, I would like the Tax ID # in cell C3 to fill in using the excel function from the data on the reference tab. Same with cell C14 & C15. see attached for an example.

View 5 Replies View Related

VBA - VLookUp Function In One Userform

Aug 14, 2014

See attached file for my sample workbook.

What I would want to happen is that I want to be able to use Vlook up by using the Value of the Textbox1 in the Info form and place the vlookup result in the fnameresult box.

Data are in Nickname sheet A:B

test template.xlsm

View 4 Replies View Related

Using A Vlookup Function In A Macro

Dec 18, 2008

I am trying to use the Vlookup function in a macro but I can't figure out how to write it. I am using a controlled loop to cycle through my data. So for the first entry, my lookup data is in cell A2. The lookup table is located in a sheet called 'Trade Table' and the lookup field is in Column B and value needed is in column C. The results go in column G. The excel formula is as follows:

View 2 Replies View Related

Can We Use Multiple If With VLookup Function

Aug 14, 2006

I have to extract multiple words from the string using VLookup function.

(Example :"Cell A1 "This is the best example")

Example : Finding "This" from cell A1- result VLookup (Sheet1) A1:D12
Finding "IS" from cell A1- result VLookup (Sheet2) A1:D20
Finding "BEST" from cell A1- result "Excellect"
Need to haev function for this

View 12 Replies View Related

Vlookup But Do Not Want To Use Concatenate Function

Mar 28, 2007

Trying to do Vlookup with If but dont know how , I can do the concatenate function and then Vlookup as in Sheet 3 but that is too much of load to deliver in quick time specially i have pull data in dynamic and continuous update.

View 14 Replies View Related

Nest A SUM Function In A VLOOKUP?

Apr 28, 2009

I have a template with multiple sets of the same categories. I want to consolidate the data for each category in a summary. However - the template is expandable by using a macro - so the number of SETS of categories is not fixed. So a simple SUM function won't work since the list of cells expands. I don't want to re-write the formula each time and the method I have is "brute force" with lots of extra columns.

My thought - If I do a VLOOKUP for "Design" and the data is the "unit cost" column can a formula be written to see all the occurences of "Design" and SUM the "unit cost" returns?? example book is attached. hit the "add option" button to see the way the sheet expands.

View 4 Replies View Related

VLookup Function Or IF Rule?

Jan 4, 2012

What I need is for in the order start date column, I need a formula to pick out the first year where the value is inserted into the column and then insert the year into the order start date column. I would do this manually, but with thousands of rows a formula would prove to be most beneficial.

2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 Order start date
515 151 2013 200 2015 1515 2018 5454 2012

View 8 Replies View Related

VLOOKUP W/ RANK Or MAX Function

Jul 26, 2007

I am dumping data out of SAP, including the following fields:

* Vendor
* Material
* PO #
* Qty
* Amt
* Date

I would like to concatenate the material and vendor and pull in the PO # for the most recent date.

The VLOOKUP part is easy on the material/vendor, but I haven't had any luck in integrating a MAX, LARGE or RANK function to pull in the PO corresponding to the most recent date.

Once the PO # associated with the most current date can be identified for the material/vendor combination, I will need to utilize another vlookup to match the PO # up against a separate data file to pull in pricing. If anyone can think of a way to accomplish this in one step as opposed to multiple formulas.

View 11 Replies View Related

IS Empty Function Wih Vlookup

May 16, 2008

I have the following code for a vlookup , the code has to ckeck for each of the cells in column A . If the cells is empty , it should not run the vlookup and need to continueto the next cell. The Vlookup is running for the empty cells too.

Sub uploadtb()
Dim lastrow As Long
With Sheets("BS")
lastrow = .Cells(Rows.Count, 1).End(xlUp).Row
End With

View 9 Replies View Related

VB Code Instead Of VLOOKUP Function

Jun 14, 2008

The code instead of Vlookup that I'm using at the moment. It takes too long if you have 40,000 to 50,000 rows of data.

The data that I have is something like the sample bebow:

Col A from A1 to A15 with numbers like:
20000000
20000001
20000002
20000003
20000004
20000005
20000006
20000007
20000008
20000009
20000010
20000011
20000012
20000013
20000014

Col C from C1 to C10 with numbers like:
20000000
20000001..............................

View 9 Replies View Related

Vlookup Function To Look Up In A Table

Sep 29, 2008

I need to create a summary table of dates and data. The trick is I need the vlookup function to look up say 7/1/08 in a table that all the dates are of the format 7/20/08 and so on. Is there a way to have the vlookup return the proper data by ignoring the day.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved