Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default Looking up a worksheet and value

I am trying to have a graph set up to look at 1 of 18 worksheets to get the
numbers and graph it. Currently I have this for populatiing the numbers

D2 = week 1
=COUNTIF('Dept. 1'!$D$4:$D$1817,D2)

I have made a drop down that has Dept. 1 trough 18 in cell A1. I would like
to have the statement be that which would look at A1 and pull the column D
values from the cooresponding worksheet to A1. Any help would be appreciated.

=COUNTIF('A1'!$D$4:$D$1817,D2) - does not work because there is no A1
woorksheet.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Looking up a worksheet and value

=COUNTIF(INDIRECT("'" & A1 & "'!$D$4:$D$1817"),D2)
HTH,
Bernie
MS Excel MVP


"jtfalk" wrote in message
...
I am trying to have a graph set up to look at 1 of 18 worksheets to get the
numbers and graph it. Currently I have this for populatiing the numbers

D2 = week 1
=COUNTIF('Dept. 1'!$D$4:$D$1817,D2)

I have made a drop down that has Dept. 1 trough 18 in cell A1. I would like
to have the statement be that which would look at A1 and pull the column D
values from the cooresponding worksheet to A1. Any help would be appreciated.

=COUNTIF('A1'!$D$4:$D$1817,D2) - does not work because there is no A1
woorksheet.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,696
Default Looking up a worksheet and value

Try the below

=COUNTIF(INDIRECT(A1&"!D4:D1817"),D2)

"jtfalk" wrote:

I am trying to have a graph set up to look at 1 of 18 worksheets to get the
numbers and graph it. Currently I have this for populatiing the numbers

D2 = week 1
=COUNTIF('Dept. 1'!$D$4:$D$1817,D2)

I have made a drop down that has Dept. 1 trough 18 in cell A1. I would like
to have the statement be that which would look at A1 and pull the column D
values from the cooresponding worksheet to A1. Any help would be appreciated.

=COUNTIF('A1'!$D$4:$D$1817,D2) - does not work because there is no A1
woorksheet.

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
Unable to Insert Worksheet/Move and copy worksheet Excel 2003 lukerush Excel Worksheet Functions 2 September 7th 06 05:05 PM
plot graph from multiple worksheet as embedded chart object on every worksheet [email protected] Charts and Charting in Excel 3 August 24th 06 07:26 PM
plot graph from multiple worksheet as embedded chart object on every worksheet [email protected] Excel Worksheet Functions 2 August 24th 06 05:26 PM
Upload multiple text files into 1 excel worksheet + put the filename as the first column in the worksheet Aster Excel Worksheet Functions 3 March 12th 06 09:58 AM
I want in one worksheet to relatively link to/reference cells in another without changing the format of the current worksheet. [email protected] Excel Discussion (Misc queries) 0 September 22nd 05 04:39 PM


All times are GMT +1. The time now is 12:15 AM.

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

About Us

"It's about Microsoft Excel"