+ Reply to Thread
Results 1 to 7 of 7

Changing cell values depending on drop down selection

  1. #1
    Registered User
    Join Date
    11-14-2008
    Location
    Ireland
    Posts
    9

    Changing cell values depending on drop down selection

    I want to have a summary sheet to pull information depending on the selections from a drop down list. So if Janurary is selected from the drop down I want the cells to display the data relating to that month. I have the workbook set up with a worksheet for each month.

    I am using this forumla: -

    =COUNTIF('Oct 08'!V1:V8930,"G*")

    But I want the 'Oct08' to change depending on the month selected?

    Any ideas?

  2. #2
    Forum Expert
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    Well if the value from the dropdown is in cell E1

    =COUNTIF(INDIRECT("'"&E1&"'!V1:V8930"),"G*")

    or if the date is a date in the dropdown

    =COUNTIF(INDIRECT("'"&TEXT(E1,"mmm yy")&"'!V1:V8930"),"G*")

    Is that what you mean?

    Regards

    Dav

  3. #3
    Registered User
    Join Date
    11-14-2008
    Location
    Ireland
    Posts
    9
    Yeah that is what I mean, now If I could make it even more complicated. I would like to use to criteria to filter i.e. two drop downs

    do it would be

    countif(Drpdwn1&drpdwn2)

    So I assume I'll have to use an array for this?

  4. #4
    Registered User
    Join Date
    11-14-2008
    Location
    Ireland
    Posts
    9
    Actually just looking at that forumla I don't think it's right? I assume I'll have to have the sheet references on an indirect link, like a lookup depending on what is selected from the dropdown?

    i.e. For a Janurary selection the countif will have to change to =COUNTIF(INDIRECT('Jan 09'!A1:T360,G*)

    Would that be right?

  5. #5
    Registered User
    Join Date
    11-14-2008
    Location
    Ireland
    Posts
    9
    Any Ideas?

  6. #6
    Valued Forum Contributor ratcat's Avatar
    Join Date
    03-07-2008
    Location
    Rural NSW, Australia
    MS-Off Ver
    Vista 2007
    Posts
    1,111
    Have I made you happy ??? If yes, please make me happy by pressing the http://www.excelforum.com/images/buttons/reputation-40b.png Add Reputation button in my post.
    Please don't forget to do the same to other contributors of this forum.

    Thanks
    I don't void confusion, I create it

  7. #7
    Forum Expert
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    Why do you not evalute the suggestion, it will change to the names of the sheets if the names are the same as the dropdown you are selecting them from

    If you are wanting to countif with 2 critieria the same logic can be applied to a sumproduct formula or a concatenation using a counit formula also look at ratcat's suggestion

    Regards

    Dav

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1