# Excel 2007 :: Obtaining Average Across Multiple Worksheets Using VLOOKUP?

Feb 17, 2014

very basic Excel user (using Excel 2007). Trying to see how I can use the VLookup function from multiple worksheets to get an average. I know it can be done, but just not sure how to go about doing that. My spreadsheet is attached - basically what I want to do is to get an average for the individuals listed in the "Consensus" tab for the figures that appear in Worksheets "1", "2" and "3".

## Excel 2007 :: Copy Multiple Unique Values To Multiple Worksheets

Aug 26, 2013

I have an Excel Spreadsheet (2007) that contains over 500,000 records that shows Electric meter usage per month over a 24 month period per meter. What I want to be able to do is to select a meter row per number and copy is to it's own worksheet. At the end - I want to be able to have a seperate worksheet per electric meter number - that I can create a graph. If I go through all 9000 meters and copy and paste into a different worksheet - it will take me weeks to do manually. How can I do this automatically?

## Excel 2007 :: Macro To Consolidate Multiple Worksheets?

Jul 6, 2012

I have a workbook with 4 sheets and with sheet 5 as a "consolidated" sheet. I have to create the macro, which will on a daily basis copy the populated data from those 4 sheets and paste into the sheet 5 (same workbook). The data in the Sheet 5 should be pasted from row 2 below each other.. Row 1 will be the headings and shouldn't be replaced. The data in all 4 sheets should be copied from row starting 37, columns C to BA but it will end with different row numbers. note that columns A & B are populated but shouldn't be copied.

## Excel 2007 :: Vlookup Using Multiple Columns?

Jun 27, 2011

I'm looking to simply find a function that allows me to lookup a certain value in a table of data and return the value in a specific column. So if I looked up the current date, 6/27/2011, it would return the week it is in (26). I dont want to be limited to just the monday column however, as the dates I will be throughout the entire week. Is there an easy way to do this in excel 2007?

MondayTuesdayWednesday ThursdayFridaySaturdayWeek
5/2/20115/3/20115/4/20115/5/20115/6/20115/7/201118
5/9/20115/10/20115/11/20115/12/20115/13/20115/14/201119
5/16/20115/17/20115/18/20115/19/20115/20/20115/21/201120
5/23/20115/24/20115/25/20115/26/20115/27/20115/28/201121
5/30/20115/31/20116/1/20116/2/20116/3/20116/4/201122
6/6/20116/7/20116/8/20116/9/20116/10/20116/11/201123
6/13/20116/14/20116/15/20116/16/20116/17/20116/18/201124
6/20/20116/21/20116/22/20116/23/20116/24/20116/25/201125
6/27/20116/28/20116/29/20116/30/20117/1/20117/2/201126
7/4/20117/5/20117/6/20117/7/20117/8/20117/9/201127
7/11/20117/12/20117/13/20117/14/20117/15/20117/16/201128
7/18/20117/19/20117/20/20117/21/20117/22/20117/23/201129
7/25/20117/26/20117/27/20117/28/20117/29/20117/30/201130
8/1/20118/2/20118/3/20118/4/20118/5/20118/6/201131
8/8/20118/9/20118/10/20118/11/20118/12/20118/13/201132
8/15/20118/16/20118/17/20118/18/20118/19/20118/20/201133
8/22/20118/23/20118/24/20118/25/20118/26/20118/27/201134
8/29/20118/30/20118/31/20119/1/20119/2/20119/3/201135
9/5/20119/6/20119/7/20119/8/20119/9/20119/10/201136
9/12/20119/13/20119/14/20119/15/20119/16/20119/17/201137

## Excel 2007 :: VLookup Across Multiple Columns

Feb 20, 2012

I am using Windows xp and Excel 2007. I'm creating a user form and have a vlookup formula that goes to a table and looks up calories and sodium based on the text entered by the user. My problem is that I want to be able to populate the 3 columns with information and then sum the values that are returned to the Calories and Sodium columns. Is that possible with Vlookup?

=IF(ISNA(VLOOKUP(F8&G8&H8,Food!A:E,4,FALSE)),0,VLOOKUP(F8&G8&H8,Food!A:E,4,FALSE))

Water 24 ozOther DrinksGelsSolid FoodCaloriesSodium

00
00
00

## Excel 2007 :: Multiple VLookup In One Cell?

Nov 27, 2013

I am trying to get one cell to look at different sheets. if the first sheet doesn't have a value, than look in the next sheet. current formula is

=IF(ISNA(VLOOKUP(Q2,'sheet2'!\$D\$2:\$K\$1807,7,FALSE)),"",VLOOKUP(Q2,sheet2'!\$D\$2:\$K\$1807,7,FALSE))

I am having cell return blank if no value is found. it is currently looking only at one sheet.

I don't want it to combine the values like this formula does.
=(VLOOKUP(Q2,'sheet3'!\$D\$2:\$K\$200,7,FALSE)&","&VLOOKUP(Q24,'sheet2'!\$D\$2:\$K\$1807,7,FALSE)) #.###,##.##

sheet 1 is where the cell I am writing the formula is in, and I want to look in sheet 2, 3, and possible 4 for a value, I want to only have the greatest value show between the sheets. is this possible.

I am using excel2007.

## Excel 2007 :: Index Match VBA Multiple Worksheets Many Rows

Jul 30, 2014

I have a workbook that has 5 worksheets. Worksheet1 is the Summary tab, Worksheets 2-5 contains data all sitting under the same headings and formats however vary in row number e.g.

Worksheet 2 - 63000 rows
Worksheet 3 - 48000 rows
Worksheet 4 - 23000 rows
Worksheet 5 - 21000 rows

In Worksheet 1 Column AQ contains a Cost Centre number which I would like to extract the parent description of in Column BI of the same Worksheet and then the child description into Column BJ. Worksheet 1 currently has 16000+ rows and grows daily.The location of the Cost Centre in Worksheets 2-4 is contained in Column A and the Parent Description in Column W and the Child Description in Column Y.I am currently using this INDEX MATCH formula to search all worksheets but as you can imagine it's tediously slow and needless to say sometimes not reporting/updating the values correctly likely because it's frozen.

=VLOOKUP(AQ2,INDIRECT("'"&INDEX(Sheet1!\$A\$1:\$A\$4,MATCH(TRUE,
COUNTIF(INDIRECT("'"&Sheet1!\$A\$1:\$A\$4&"'!A2:A63355"),AQ2)>0,0))&"'!A2:W63355"),23,0) this looks up Cost Centre in Worksheet 1 Column AQ and returns the results from Column W in Worksheets 2-4 to Worksheet 1 Column BI

[code]....

## Excel 2007 :: Using VLOOKUP And OFFSET Instead Of Multiple IF And VLOOKUPs?

Jul 29, 2014

Sample data

2014
2013
2012

Country A

2%
3%

Country B
5%
6%
7%

[code].....

Now, whenever I type in any country it should show me the most recent figure available for that country.

Suppose, if I type Country A in, say cell A14, then it should give me output 2% in cell, say A15. When I change that same cell to country C, it should give me output 10%, country B should give me output 5%.

Currently I have used IF and multiple/nested VLOOKUPs to arrive at this output. Is there any better way to do this with VLOOKUP and OFFSET?

I am using Excel 2007.

## Excel 2007 :: Copy Same Cells From Multiple Worksheets All Named In Ascending Numeric Order?

Jan 15, 2013

In Excel 2007, Windows 7 Home Premium, I am trying to summarise multiple worksheets into one sheet, creating a list in one column in this summary sheet that includes the cell contents from the same cell from each sheet. For example, my first sheet is called KCD183 and I want to list the value from KCD183 Cell A2 in my Summary Cell A2, then show KCD184 Cell A2 in Summary Cell A3 (i.e. the next row down). So my Summary sheet will list all cell A2s from all my sheets, 1 after the other down column A and will continue to add these for any new sheets I add.

I realise that I could just export the spreadsheet to Access and report on it from there, but I don't have the software!

## Average From Cells On Multiple Worksheets

Dec 20, 2006

I have a control box button on a sheet and when I click it, I'd like to take the average for the values in Cell M8 on all Worksheets in my Workbook with the exception of the ones named Cover, Opportunity Map, and Average....and put the average calculated in cell M8 on the sheet called Average.

My issue is that the number of worksheets may change for each instance, which is why I'm trying to incorporate any that might be in the workbook other than a few named ones.

Is this possible and if so can anyone assist with the code?

## Excel 2007 :: Running Monthly Average

Jul 9, 2012

I would like to keep an average for 12 months.Each number entered for a month would be averaged with the total months with an entry until all 12 months had entries. I am using excel 2007

## Excel 2007 :: Using SUM Or AVERAGE On Hours And Minutes?

Sep 10, 2013

I am 2007 Excel user.

I am attempting to take a large data download of time in hours and minutes and average or get the sum. Each cell contains hours and minutes in this format:

203:30 (meaning 203 hours and 30 minutes)
196:05
72:22
6:55

I have formatted the column in everyway I can think of from custom hh:mm to time, to scientific--I have grasped at each straw I have used the TRIM function to ensure there is no leading space. When I attempt to average I receive the #DIV/0! error, and when I attempt to use SUM, I get a dash (-).

I have been researching this on the internet, and have tried everything that is slightly applicable, with no luck yet. I am wondering if it is because the hours are more than 24, so the hh:mm format does not truly apply...

## Excel 2007 :: Find Average Numbers On Sheet 1 Column D?

Feb 13, 2012

I am using excell 2007 and 2010

I need to find the average numbers on sheet 1 column D. Column D contains numbers as well as Blank cells. The info will be presented on sheet 2 in a monthly view. In other words i need to ssearch awithin a date range and determin the average of those numbers. This works on some months but return a DIV/0 erro most of the time.

=AVERAGEIFS('2N Stats'!\$I:\$I,'2N Stats'!\$E:\$E,">=2/1/2011",'2N Stats'!\$E:\$E,"

## Excel 2007 :: Average Of Set Range - Display Blank If Cell Contains 0

Mar 13, 2013

I have searched and trying to manipulate various formulas with no success...

I am entering an AverageIF formula into cell J15

I want to calculate the average of the folllowing ranges cells J5:J8,J10:J13

However, I want the cell J15 to display blank if cell J14=0

On reflection I am unsure an AverageIF formula is even correct.

## VBA With Vlookup Across Multiple Worksheets?

Apr 14, 2014

I have multiple worksheets with data for which I would like to write a macro to search and "retrieve" based on the State/County/Municipality and Client selected. I have created the drop down menus that should drive the data being searched, but I'm not confident in my very limited abilities to take this to the next level.

End goal: User should be able to select from the dependent drop down lists (State/County/Municipality) and/or Client, click "Retrieve Data" button and pull in data from the appropriate worksheet driven by the selection in the drop down lists.

## VLOOKUP Multiple Worksheets

Mar 6, 2009

I have 4 spreadhsheets in all, the front main sheet plus 3 with different informatioin on. In the main sheet i want to collate all the data togther automatically rather than cut and paste becuase the data is ongoing and updating from other workbooks.

All 3 sheets have a one main column (lets say "A") then 5 or 6 columns after wards. I want the number in column "A" in the main sheet to match the number in the other 3 sheets then pull the information from the other 5 or 6 columns into the main sheet. So that if i changed the number in the main sheet column "A" to a different number it would change the other columns automatically. Basically, if its not in sheet 1 then look in sheet 2, if not in 2 then look in 3.

## Vlookup, Multiple Worksheets In

Apr 11, 2007

I am trying to vlookup using data on two seperate worksheets. On a worksheet called form, I am trying to return a value from sheet1 or sheet2. If the look up value is not on sheet1, how do i get it to look for the lookup value on sheet2? B5 contains the look up value, on sheet1 and sheet2 the array is a2:z65000, 38 is the column index number, false is the range lookup.

## Excel 2007 :: Recovering Missing Worksheets?

Aug 29, 2012

I'm a novice using Excel 2007 at work and some of my worksheets have vanished.

On Friday I opened up an existing single-sheet workbook; while I was working on it I renamed the original sheet and added two new sheets. Obviously, I saved everything before I shut the file.

Today I've opened up the workbook and the two new sheets have vanished. Strangely, the original sheet has reverted to its original name (also the name of the workbook), but the changes I made to the data on Friday remain. The Properties window indicates there is only one sheet in this workbook, and confirms that the last save was made at the end of Friday.

The workbook is saved as an Excel Comma Separated Values file. I don't know if this is relevent.

## Excel 2007 :: Skip Worksheets In For Next Loop

Sep 24, 2013

I'm trying to loop through worksheets as follows:

If ws.Name "DataTable" And ws.Name "Summary" Then ws.Activate
code to do some copy/paste stuff ....
Next ws

Try as I may, I can't get the code to skip the worksheets named "DataTable" and "Summary". Based on other posts, I've tried swapping out the And for an Or. Also tried using LCase(ws.Name), to no avail. Note that I'm acually trying to skip several other sheets as well but only listed two here for simplicity.

I'm using Excel 2007.

## Excel 2007 :: VLookup With Checkboxes?

Mar 10, 2014

Well to start off I am using Excel 2007, I have an invoice template set up across two sheets (Invoice & Price Table), on the first page is the actual invoice that needs to be filled in. I have made an userform for being able to fill in the invoice number,what type of test was done, and also things like hours and miles (an their costs per also)

. Now I am wanting to try and get it to where I can have the form look at the type of test cell and from there select the price located on the second sheet that is appropriate to that type, the thing is, there are two possible prices that it can be depending on if the company wanted the results "rush". I was suggested that I could use a check box on the invoice to indicate in the spreadsheet that it is a rush, and somehow link that in with a vlookup to be able to get what I wanted, but I'm not sure exactly how I would go about doing that.

## Vlookup Multiple Info From Different Worksheets

Oct 24, 2008

I have 3 different sheets of information.
Each sheet has a column of text. With the column of text I have a number associated with it.

I want to ceate a column for each number and have it look at all three sheets for info corresponding with that number.

Ex: 1st Sheet
Excellent condition 20
Like New 20
Poor condition 21

2nd Sheet
No work has been done. 20
Needs Work. 20

3rd Sheet
March 20
December 21

The formula needs to lookup the first number and place the text in the first row, then the next row either go to the next number or if there is not one then the next sheet.

I would like a column that reads something like this:
Sheet 21
in first row - poor condition
second row - december

## Excel 2007 :: Calculating Innings Pitched From Other Worksheets

May 12, 2009

i have an excel 2007 spreadsheet where i keep baseball stats. On the pitching side have a column for the pitchers innings pitch. The data kooks like this:

1.0
1.1
1.2

where the numbers after decimal points represents thirds of an inning.
In my spreadsheet i have 4 workheets of different divisions that have a breakdown of each team the team i am keeping stats for plays.

i manually enter the innings pitched in the totals for the season as i cannot figure out how to add these numbers from the individual worksheets to calculate the right number. once the number after the decimal point is greater than two than another full inning is recorded not a continuation of the number.

Example pitcher has already pitched 2.2 innings and he pitches 1.2 innings today making a total of 3.4 which should really be 3.1 one last one pitcher has pitched .2 innings and pitches .1 today making a total of .3 innings pitched but it should be 1.0 innings pitched. proper formula to sum the correct totals in the totals worksheet. i am at a loss and ihave been working on this problem for a little while with no luck.

## Excel 2007 :: VBA Formula To Replace Vlookup?

Oct 4, 2013

I have two worksheets, contractor & list. Assume that Column (A) on the "contractor" worksheet is a named range from Column (A) on the "list" worksheet. On the "contractor" worksheet I would like to put in the contractors name, and auto populate the pay value in column (B). I have been using a Vlookup formula, but need to automate this process a bit more.

"Contractor" worksheet - Two columns: (A) I will input the contractors name from a dropdown list based on name range from my "list" worksheet. (B) is where I would like to populate the pay base on column (B) in my "list" worksheet.

Contractor (A)
Pay (B)

Jill

Fred

Jack

## Excel 2007 :: Formula To Add Figures Together When Doing VLookup

Dec 9, 2013

I am using Excel 2007, I have a customer sheet and a sales sheet in the same work book. My customer sheet lists all customers with a single entry only each with a unique customer code. My Sales sheet lists at an item level but does include the customer code so if my customer has purchased more than one item the customer code can be repeated on the Sales sheet on multiple rows.

When I do a vlookup to display the amount each customer has spent on the customer sheet, only the very first sales figure is displayed, if further down the sales sheet the same customer has made another purchase I want this figure to be added to the first figure and all I want to see on my customer sheet is the final total figure.

The vlookup formula I am currently using is:
=VLOOKUP(G2,Sales!\$A\$2:\$B\$1785,2,FALSE),

I'm thinking maybe a Vlookup will not do what I require, maybe I need a different formula/function?

## Excel 2007 :: Vlookup Not Capturing All The Duplicates?

Dec 6, 2012

I have used this template for a Vlookup and have been having troubles that I simply cannot pin down. Some duplicated numbers in Columns A and C will NOT appear in Column B. I am also trying to work it out where when the results are displayed that Excel will tell me in a pivot how many loans are on both lists and how many loans are on each specific list.

## Excel 2007 :: Vlookup And Copy Value From Another Workbook?

Apr 15, 2014

Excel 2007

I have a workbook (book1) that is modifying multiple other workbooks (book2). I need to do a vlookup of a sheet in book1 from a value in book2. I then need to insert the value found by the lookup into G7:H7 (merged cells) of book2.

value is in column B of page "Routes" of book1. Found by value B3:C3 of book2. The vlookup looks in column A of book1. The found value is put into G7:H7 of book2.

In a step by step, to possibly make this more clear:

1) check value of B3:C3 in book2
2) find value in Routes sheet of book1, column A
3) upon match, grab the value of column B
4) insert that value into G7:H7 of book2

[URL]

## Excel 2007 :: VLookup Cell Limit?

Aug 14, 2012

I have data in a sheet in Excel 2007 that I am trying to move to another sheet in the same workbook.

I am using Vlookup to move the info from one sheet to the other.

However it seems that if the data in the original sheet cell is too large I get a #VALUE! error.

If I copy and paste the info from the cell it is fine.

How do I copy the information (hyperlink) in the original sheet cell to the destination sheet cell?

Here is the formula that I am using.

verified1-4-12 is the original sheet name

## Hyperlink To VLookup Result In Multiple Worksheets

Jan 31, 2014

I have a vlookup worksheet like described in this thread: [URL] .... This works perfect. I would like to be able to jump to the vlookup result using a hyperlink.

In the thread worksheet the formula in C2 is like
=VLOOKUP(A2,INDIRECT("'"&INDEX(\$G\$2:\$G\$9,MATCH(TRUE,COUNTIF(INDIRECT("'"&\$G\$2:\$G\$9&"'!C2:C100"),A2)>0;0))&"'!C2:D100"),2,0)

In cell D2 I placed the formula (font: webdings )

(Due to the Dutch Excel I use I replaced ";" to ",")

The link works because I hardcoded "Sheet2" into the formula where the result can be found. But it would be much nicer if I didn't had to put the sheetname into this formula.

Is it possible to use range G2:G8 like in the first formula to achieve this? I guess you have to use INDEX and/or INDIRECT but I barely understand the first formula ...

## VLOOKUP Find Values From Multiple Worksheets

May 22, 2009

I want to find sum of all 4 returned values (Sales!BL5, Sales!BM5, Grants!X5, Deferred Pymts!X5

Column References:

Cell AC2 (TOTAL NO. OF ORDERS)
Cell Range B5:B4833 on multiple pages (CUSTOMER NAME)
Cell Range AJ5:AJ4833 on multiple pages (CUSTOMER NAME)

Formula:

In Cell AD2 of CustomerData! Sheet:

If AC2 is not blank, then
look for match between A2 and Sales!B5:B4833, return the value in Sales!BL5, and
look for match between A2 and Sales!AJ5:AJ4833, return the value in Sales!BM5, and
look for match between A2 and Grants!B5:B4833, return the value Grants!X5, and
look for match between A2 and Deferred Pymts!B5:B4833, return the value Deferred Pymts!X5

Hope this does not confuse, but if John Doe is listed in AC2 I want to find the sum of his total payments if his name is listed as a customer in Sheets Sales, Grants, and Deferred Pymts. The Sales! sheet is divided into AM and PM pricing which explains why Sales! has Column B and Column AJ for Customer Names.

## Obtaining Certain Data From A Range Depending On Multiple Factors

Nov 15, 2013

I have a sheet with 5000+ entries, column A is an ID number, column B has one of 4 outcomes C,D and E are just times and quantities and are not important.

In column A there could be multiple entries of the same ID number.

In column B it will show Pcid243A, Pcid243B, Ddar400A or Ddar400B.

I need to export (to another sheet) any entries with the following conditions:

A = ID number with any instance in B showing both a 243 and 400 condition.

E.G

A B C D E
AA565677878D - Pcid243B - C - D - E
AA837632823G - Pcid243B - C - D - E
AA837632823G - Pcid243A - C - D - E
YA74846CC - Ddar400A - C - D - E
WW768765364F - Ddar400A - C - D - E
WW768765364F - Ddar400B - C - D - E
WW768765364F - Pcid243B - C - D - E
AA73262362G - Ddar400B - C - D - E

In the example above, I'd need the red cells exporting to a new sheet as they meet the conditions of having the same ID and both a 243 & 400 outcome:

A B C D E
AA565677878D - Pcid243B - C - D - E
AA837632823G - Pcid243B - C - D - E
AA837632823G - Pcid243A - C - D - E
YA74846CC - Ddar400A - C - D - E
WW768765364F - Ddar400A - C - D - E
WW768765364F - Ddar400B - C - D - E
WW768765364F - Pcid243B - C - D - E
AA73262362G - Ddar400B - C - D - E

Now I've spent ages trying different things and can't get anything to work...