Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 31
Default How can I get a drop down to update the range of a formula

I have created the following formula:-

=COUNTIF(Sheet1!A3:A7,$A$2)

What I would like to do is create a countif formula looks in different
sheets (but at the same range) based on what the users has selected in a drop
down.

So if the users has selected from the drop down Sheet1 the formula looks in
sheet1, if the users selects Sheet2 the formula looks in Sheet2

Can you help

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default How can I get a drop down to update the range of a formula

Hi,

you can try this

=countif(indirect(A1&"!A3:A7"),$A$2)

where A1 holds Sheet1

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"nir020" wrote in message
...
I have created the following formula:-

=COUNTIF(Sheet1!A3:A7,$A$2)

What I would like to do is create a countif formula looks in different
sheets (but at the same range) based on what the users has selected in a
drop
down.

So if the users has selected from the drop down Sheet1 the formula looks
in
sheet1, if the users selects Sheet2 the formula looks in Sheet2

Can you help

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default How can I get a drop down to update the range of a formula

Suppose you have the sheet name in A1

=COUNTIF(INDIRECT(A1&"!A3:A7"),$A$2)
--
If this post helps click Yes
---------------
Jacob Skaria


"nir020" wrote:

I have created the following formula:-

=COUNTIF(Sheet1!A3:A7,$A$2)

What I would like to do is create a countif formula looks in different
sheets (but at the same range) based on what the users has selected in a drop
down.

So if the users has selected from the drop down Sheet1 the formula looks in
sheet1, if the users selects Sheet2 the formula looks in Sheet2

Can you help

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 896
Default How can I get a drop down to update the range of a formula

Excel 2003
select B1 then
Data-Validation-(Allow window) select List-show yr range containing
list of worksheets available-OK
then use the formula:
=COUNTIF(INDIRECT(B1&"!A3:A7");$A$2)

adjust B1 to suit


On 6 Maj, 13:41, nir020 wrote:
I have created the following formula:-

=COUNTIF(Sheet1!A3:A7,$A$2)

What I would like to do is create a countif formula looks in different
sheets (but at the same range) based on what the users has selected in a drop
down.

So if the users has selected from the drop down Sheet1 the formula looks in
sheet1, if the users selects Sheet2 the formula looks in Sheet2

Can you help

Thanks


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
How to Update drop-down list? DB Excel Discussion (Misc queries) 7 April 3rd 23 04:21 PM
Drop down list Update vivi Excel Discussion (Misc queries) 2 January 8th 09 01:08 AM
Drop Down--How do I copy and update cell link/input range MaryinCT Excel Discussion (Misc queries) 1 November 2nd 07 01:13 AM
How do I update a drop down box in Excel? Brandy Excel Worksheet Functions 2 January 5th 06 06:55 PM
Lost Drop & Drag after update Ray Excel Discussion (Misc queries) 0 November 22nd 05 02:17 PM


All times are GMT +1. The time now is 05:53 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"