Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Ali Ali is offline
external usenet poster
 
Posts: 80
Default Formula from various sheets

Hi, I have seen similar queries but still can't seem to get it correct as
perhaps i need more basic details. i have 20 sheets. each named according
to a staff name: Peter, john, david etc
I then have a summary sheet.
i would like column A1 to read the staff name on the worksheet tab (is this
possible?)
Secondly, Column B needs to read overtime for staff. Appears on cell H10 on
EACH sheet. So B1: would show overtime for peter. B2, overtime for David etc
Column C would then read another cell from each of the staff sheets, so that
i would have 1 x summarised sheet, reading all the values from their
individual sheets. Please can you assist. Thanks, and apologies if i have
asked a few individual for help, as i replied to previous postings.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 180
Default Formula from various sheets

This is how you can get the name of the current worksheet

You have to make use of CELL, MID, LEN worksheet functions

Type thie below formula in the desired cell where you want the current
worksheet's name to be displayed-

=MID(CELL("filename",A1),FIND("]",CELL("filename",A1),1)+1,LEN(CELL("filename",A1) ))

Regards,
Pranav Vaidya

"Ali" wrote:

Hi, I have seen similar queries but still can't seem to get it correct as
perhaps i need more basic details. i have 20 sheets. each named according
to a staff name: Peter, john, david etc
I then have a summary sheet.
i would like column A1 to read the staff name on the worksheet tab (is this
possible?)
Secondly, Column B needs to read overtime for staff. Appears on cell H10 on
EACH sheet. So B1: would show overtime for peter. B2, overtime for David etc
Column C would then read another cell from each of the staff sheets, so that
i would have 1 x summarised sheet, reading all the values from their
individual sheets. Please can you assist. Thanks, and apologies if i have
asked a few individual for help, as i replied to previous postings.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Formula from various sheets

Ali,

This assumes you first worksheet is the summary sheet. On workbook open it
reads all the sheet tabs and overtime worked into the first sheet. It doesn't
have to be workbook open code it could just as easily be a module called with
a button.

Private Sub Workbook_Open()
x = 1
Dim wSheet As Worksheet
For Each wSheet In Worksheets
wSheet.Select
If x = 1 Then GoTo 100
otworked = Range("H10").Value
Worksheets("Sheet1").Cells(x, 1).Value = wSheet.Name
Worksheets("Sheet1").Cells(x, 2).Value = otworked
100
x = x + 1
Next wSheet
End Sub

Mike

"Ali" wrote:

Hi, I have seen similar queries but still can't seem to get it correct as
perhaps i need more basic details. i have 20 sheets. each named according
to a staff name: Peter, john, david etc
I then have a summary sheet.
i would like column A1 to read the staff name on the worksheet tab (is this
possible?)
Secondly, Column B needs to read overtime for staff. Appears on cell H10 on
EACH sheet. So B1: would show overtime for peter. B2, overtime for David etc
Column C would then read another cell from each of the staff sheets, so that
i would have 1 x summarised sheet, reading all the values from their
individual sheets. Please can you assist. Thanks, and apologies if i have
asked a few individual for help, as i replied to previous postings.

  #4   Report Post  
Posted to microsoft.public.excel.misc
Ali Ali is offline
external usenet poster
 
Posts: 80
Default Formula from various sheets

Hi Pranav, thanks i am able to get the name of the CURRENT sheet, on the
master copy. However, I was hoping that there was some way, to have column
A1-20 9on the master sheet) to read the names of ALL the 20 worksheets. Is
this possible?

"Pranav Vaidya" wrote:

This is how you can get the name of the current worksheet

You have to make use of CELL, MID, LEN worksheet functions

Type thie below formula in the desired cell where you want the current
worksheet's name to be displayed-

=MID(CELL("filename",A1),FIND("]",CELL("filename",A1),1)+1,LEN(CELL("filename",A1) ))

Regards,
Pranav Vaidya

"Ali" wrote:

Hi, I have seen similar queries but still can't seem to get it correct as
perhaps i need more basic details. i have 20 sheets. each named according
to a staff name: Peter, john, david etc
I then have a summary sheet.
i would like column A1 to read the staff name on the worksheet tab (is this
possible?)
Secondly, Column B needs to read overtime for staff. Appears on cell H10 on
EACH sheet. So B1: would show overtime for peter. B2, overtime for David etc
Column C would then read another cell from each of the staff sheets, so that
i would have 1 x summarised sheet, reading all the values from their
individual sheets. Please can you assist. Thanks, and apologies if i have
asked a few individual for help, as i replied to previous postings.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Formula from various sheets

The problem is that you need to know the name of the sheet, to be able to
link to it and get the name of that sheet. It would then reflect changes but
that is all AFAICS.
--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Ali" wrote in message
...
Hi Pranav, thanks i am able to get the name of the CURRENT sheet, on the
master copy. However, I was hoping that there was some way, to have
column
A1-20 9on the master sheet) to read the names of ALL the 20 worksheets.
Is
this possible?

"Pranav Vaidya" wrote:

This is how you can get the name of the current worksheet

You have to make use of CELL, MID, LEN worksheet functions

Type thie below formula in the desired cell where you want the current
worksheet's name to be displayed-

=MID(CELL("filename",A1),FIND("]",CELL("filename",A1),1)+1,LEN(CELL("filename",A1) ))

Regards,
Pranav Vaidya

"Ali" wrote:

Hi, I have seen similar queries but still can't seem to get it correct
as
perhaps i need more basic details. i have 20 sheets. each named
according
to a staff name: Peter, john, david etc
I then have a summary sheet.
i would like column A1 to read the staff name on the worksheet tab (is
this
possible?)
Secondly, Column B needs to read overtime for staff. Appears on cell
H10 on
EACH sheet. So B1: would show overtime for peter. B2, overtime for
David etc
Column C would then read another cell from each of the staff sheets, so
that
i would have 1 x summarised sheet, reading all the values from their
individual sheets. Please can you assist. Thanks, and apologies if i
have
asked a few individual for help, as i replied to previous postings.



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 Data From Different Sheets Via Formula/ae Naeema Excel Discussion (Misc queries) 2 February 12th 07 04:52 PM
IF formula over multiple sheets JaB Excel Discussion (Misc queries) 4 January 22nd 07 12:36 PM
formula to add up on multiple sheets Grd Excel Worksheet Functions 2 December 20th 06 05:37 PM
Help! Formula between the sheets ReBecca Excel Worksheet Functions 2 August 22nd 05 01:31 PM
Referencing Sheets in a Formula Christopher Anderson Excel Discussion (Misc queries) 1 January 31st 05 04:10 PM


All times are GMT +1. The time now is 10:28 PM.

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"