Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default VLOOKUP over multiple sheets

I have a workbook with a summary tab and one tab for ever week.

I need to write a formula that looks for a value from column a, find the
sheet with a matching value in cell e4 and returns the value of cell ac1 of
the worksheet.

This formula will live in column b of the summary sheet.

Example:

Summary Tab

A B
1 19-Jul 19,000(formula result)
2 16-Jul
3 23-Jul
4 30-Jul

Data Tab 1

E AC
1 9-Jul 19,000

It will need to look in cell E1 of every tab in the work book (52 tabs) for
the value found in $a1.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 299
Default VLOOKUP over multiple sheets

Does the lookup value occur more than once in all of the sheets?

--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
(Remove ^^ from email)


"Jaisenm" wrote in message
...
I have a workbook with a summary tab and one tab for ever week.

I need to write a formula that looks for a value from column a, find the
sheet with a matching value in cell e4 and returns the value of cell ac1
of
the worksheet.

This formula will live in column b of the summary sheet.

Example:

Summary Tab

A B
1 19-Jul 19,000(formula result)
2 16-Jul
3 23-Jul
4 30-Jul

Data Tab 1

E AC
1 9-Jul 19,000

It will need to look in cell E1 of every tab in the work book (52 tabs)
for
the value found in $a1.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default VLOOKUP over multiple sheets

Hi!

One way:

Create a list of the sheet names:

H1 = Sheet2
H2 = Sheet3
H3 = Sheet4
H4 = Sheet5

Entered as an array using the key combination of CTRL,SHIFT,ENTER (not just
ENTER):

=INDIRECT("'"&INDEX(H$1:H$4,MATCH(TRUE,COUNTIF(IND IRECT("'"&H$1:H$4&"'!E4"),A1)0,0))&"'!AC1")

Biff

"Jaisenm" wrote in message
...
I have a workbook with a summary tab and one tab for ever week.

I need to write a formula that looks for a value from column a, find the
sheet with a matching value in cell e4 and returns the value of cell ac1
of
the worksheet.

This formula will live in column b of the summary sheet.

Example:

Summary Tab

A B
1 19-Jul 19,000(formula result)
2 16-Jul
3 23-Jul
4 30-Jul

Data Tab 1

E AC
1 9-Jul 19,000

It will need to look in cell E1 of every tab in the work book (52 tabs)
for
the value found in $a1.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default VLOOKUP over multiple sheets

matching value in cell e4 look in cell E1 of every tab

Which is it, E1 or E4? I used E4 in the formula.

Biff

"Biff" wrote in message
...
Hi!

One way:

Create a list of the sheet names:

H1 = Sheet2
H2 = Sheet3
H3 = Sheet4
H4 = Sheet5

Entered as an array using the key combination of CTRL,SHIFT,ENTER (not
just ENTER):

=INDIRECT("'"&INDEX(H$1:H$4,MATCH(TRUE,COUNTIF(IND IRECT("'"&H$1:H$4&"'!E4"),A1)0,0))&"'!AC1")

Biff

"Jaisenm" wrote in message
...
I have a workbook with a summary tab and one tab for ever week.

I need to write a formula that looks for a value from column a, find the
sheet with a matching value in cell e4 and returns the value of cell ac1
of
the worksheet.

This formula will live in column b of the summary sheet.

Example:

Summary Tab

A B
1 19-Jul 19,000(formula result)
2 16-Jul
3 23-Jul
4 30-Jul

Data Tab 1

E AC
1 9-Jul 19,000

It will need to look in cell E1 of every tab in the work book (52 tabs)
for
the value found in $a1.





  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default VLOOKUP over multiple sheets

No the value of E1 on every sheet is equal to the sheet name.

Basically this formula will be copied on the main tab in rows B7 through B58.

It should look in the adjacent cell in Column A, find the value, then search
through Cell E1 of all sheets in the workbook looking for the sheet with a
matching value.

All E1's will be unique.

When it find the sheet with with the matching value, it should return the
value of AC1 as the result.

"Peo Sjoblom" wrote:

Does the lookup value occur more than once in all of the sheets?

--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
(Remove ^^ from email)


"Jaisenm" wrote in message
...
I have a workbook with a summary tab and one tab for ever week.

I need to write a formula that looks for a value from column a, find the
sheet with a matching value in cell e4 and returns the value of cell ac1
of
the worksheet.

This formula will live in column b of the summary sheet.

Example:

Summary Tab

A B
1 19-Jul 19,000(formula result)
2 16-Jul
3 23-Jul
4 30-Jul

Data Tab 1

E AC
1 9-Jul 19,000

It will need to look in cell E1 of every tab in the work book (52 tabs)
for
the value found in $a1.






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 299
Default VLOOKUP over multiple sheets

Then Biff's solutions should work


--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
(Remove ^^ from email)



"Jaisenm" wrote in message
...
No the value of E1 on every sheet is equal to the sheet name.

Basically this formula will be copied on the main tab in rows B7 through
B58.

It should look in the adjacent cell in Column A, find the value, then
search
through Cell E1 of all sheets in the workbook looking for the sheet with a
matching value.

All E1's will be unique.

When it find the sheet with with the matching value, it should return the
value of AC1 as the result.

"Peo Sjoblom" wrote:

Does the lookup value occur more than once in all of the sheets?

--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
(Remove ^^ from email)


"Jaisenm" wrote in message
...
I have a workbook with a summary tab and one tab for ever week.

I need to write a formula that looks for a value from column a, find
the
sheet with a matching value in cell e4 and returns the value of cell
ac1
of
the worksheet.

This formula will live in column b of the summary sheet.

Example:

Summary Tab

A B
1 19-Jul 19,000(formula result)
2 16-Jul
3 23-Jul
4 30-Jul

Data Tab 1

E AC
1 9-Jul 19,000

It will need to look in cell E1 of every tab in the work book (52 tabs)
for
the value found in $a1.






  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default VLOOKUP over multiple sheets

Would SUMIF work better for this since it is just bringing the value of one
cell?

"Jaisenm" wrote:

No the value of E1 on every sheet is equal to the sheet name.

Basically this formula will be copied on the main tab in rows B7 through B58.

It should look in the adjacent cell in Column A, find the value, then search
through Cell E1 of all sheets in the workbook looking for the sheet with a
matching value.

All E1's will be unique.

When it find the sheet with with the matching value, it should return the
value of AC1 as the result.

"Peo Sjoblom" wrote:

Does the lookup value occur more than once in all of the sheets?

--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
(Remove ^^ from email)


"Jaisenm" wrote in message
...
I have a workbook with a summary tab and one tab for ever week.

I need to write a formula that looks for a value from column a, find the
sheet with a matching value in cell e4 and returns the value of cell ac1
of
the worksheet.

This formula will live in column b of the summary sheet.

Example:

Summary Tab

A B
1 19-Jul 19,000(formula result)
2 16-Jul
3 23-Jul
4 30-Jul

Data Tab 1

E AC
1 9-Jul 19,000

It will need to look in cell E1 of every tab in the work book (52 tabs)
for
the value found in $a1.




  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default VLOOKUP over multiple sheets

You still need the list of sheet names:

=SUMPRODUCT(SUMIF(INDIRECT("'"&H$1:H$4&"'!E1"),A1, INDIRECT("'"&H$1:H$4&"'!AC1")))

Biff

"Jaisenm" wrote in message
...
Would SUMIF work better for this since it is just bringing the value of
one
cell?

"Jaisenm" wrote:

No the value of E1 on every sheet is equal to the sheet name.

Basically this formula will be copied on the main tab in rows B7 through
B58.

It should look in the adjacent cell in Column A, find the value, then
search
through Cell E1 of all sheets in the workbook looking for the sheet with
a
matching value.

All E1's will be unique.

When it find the sheet with with the matching value, it should return the
value of AC1 as the result.

"Peo Sjoblom" wrote:

Does the lookup value occur more than once in all of the sheets?

--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
(Remove ^^ from email)


"Jaisenm" wrote in message
...
I have a workbook with a summary tab and one tab for ever week.

I need to write a formula that looks for a value from column a, find
the
sheet with a matching value in cell e4 and returns the value of cell
ac1
of
the worksheet.

This formula will live in column b of the summary sheet.

Example:

Summary Tab

A B
1 19-Jul 19,000(formula result)
2 16-Jul
3 23-Jul
4 30-Jul

Data Tab 1

E AC
1 9-Jul 19,000

It will need to look in cell E1 of every tab in the work book (52
tabs)
for
the value found in $a1.





  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default VLOOKUP over multiple sheets

How do i remove the #N/A! where the sheet has not been populated with data yet?

"Peo Sjoblom" wrote:

Then Biff's solutions should work


--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
(Remove ^^ from email)



"Jaisenm" wrote in message
...
No the value of E1 on every sheet is equal to the sheet name.

Basically this formula will be copied on the main tab in rows B7 through
B58.

It should look in the adjacent cell in Column A, find the value, then
search
through Cell E1 of all sheets in the workbook looking for the sheet with a
matching value.

All E1's will be unique.

When it find the sheet with with the matching value, it should return the
value of AC1 as the result.

"Peo Sjoblom" wrote:

Does the lookup value occur more than once in all of the sheets?

--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
(Remove ^^ from email)


"Jaisenm" wrote in message
...
I have a workbook with a summary tab and one tab for ever week.

I need to write a formula that looks for a value from column a, find
the
sheet with a matching value in cell e4 and returns the value of cell
ac1
of
the worksheet.

This formula will live in column b of the summary sheet.

Example:

Summary Tab

A B
1 19-Jul 19,000(formula result)
2 16-Jul
3 23-Jul
4 30-Jul

Data Tab 1

E AC
1 9-Jul 19,000

It will need to look in cell E1 of every tab in the work book (52 tabs)
for
the value found in $a1.






  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default VLOOKUP over multiple sheets

Use the Sumproduct formula (it is better now that we have more info to go
on). It'll just return 0.

Biff

"Jaisenm" wrote in message
...
How do i remove the #N/A! where the sheet has not been populated with data
yet?

"Peo Sjoblom" wrote:

Then Biff's solutions should work


--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
(Remove ^^ from email)



"Jaisenm" wrote in message
...
No the value of E1 on every sheet is equal to the sheet name.

Basically this formula will be copied on the main tab in rows B7
through
B58.

It should look in the adjacent cell in Column A, find the value, then
search
through Cell E1 of all sheets in the workbook looking for the sheet
with a
matching value.

All E1's will be unique.

When it find the sheet with with the matching value, it should return
the
value of AC1 as the result.

"Peo Sjoblom" wrote:

Does the lookup value occur more than once in all of the sheets?

--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
(Remove ^^ from email)


"Jaisenm" wrote in message
...
I have a workbook with a summary tab and one tab for ever week.

I need to write a formula that looks for a value from column a, find
the
sheet with a matching value in cell e4 and returns the value of cell
ac1
of
the worksheet.

This formula will live in column b of the summary sheet.

Example:

Summary Tab

A B
1 19-Jul 19,000(formula result)
2 16-Jul
3 23-Jul
4 30-Jul

Data Tab 1

E AC
1 9-Jul 19,000

It will need to look in cell E1 of every tab in the work book (52
tabs)
for
the value found in $a1.








Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using VLOOKUP with abitlity to choose from multiple defined names. Armando Excel Worksheet Functions 5 February 26th 06 10:18 PM
selecting multiple sheets Shaun Excel Worksheet Functions 1 August 31st 05 04:09 PM
Printing Multiple sheets light_life_love Excel Discussion (Misc queries) 0 August 25th 05 08:52 PM
How do i auto create multiple files from 1 with multiple sheets Kathy Excel Worksheet Functions 0 July 26th 05 01:23 AM
linking multiple sheets to a summary sheet greg g Excel Discussion (Misc queries) 1 December 16th 04 07:43 AM


All times are GMT +1. The time now is 07:10 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"