+ Reply to Thread
Results 1 to 13 of 13

Dynamic Drop Down List Using OFFSET With Color

  1. #1
    Registered User
    Join Date
    02-18-2006
    Location
    WV
    MS-Off Ver
    2003,2007,2010
    Posts
    69

    Dynamic Drop Down List Using OFFSET With Color

    Hello, I am making an attendance calendar on (Sheet1) and on (Sheet2) I want to have the list for my drop down for each square in my year calendar and for it to be able to be colored. So three questions.

    1) Using the formula below for my list on (Sheet2) how do I get it to work. Or in other word how do I get the cells in (Sheet1) be able to use the list?
    2) I want to have each abbreviation colored. Like vacation (V) would be green or Holiday (H) would be light blue ect. there is to many to do conditional formatting.
    3) I want to be able to have a pattern style show up as a option in my drop down. I use this for the months that dont have 31 days in it and for February.


    =OFFSET($A$2,0,0,COUNTIF($A$2:$A$50,”<>”))
    Last edited by oxicottin; 08-14-2017 at 08:20 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Dynamic Drop Down List Using OFFSET With Color

    Please attach the file. We need to see how the list is formatted. What information is in the list/dropdown?

    #1. You might want to use COUNTA($A$2:$A$50) instead of the COUNTIF you are using, unless $A$2:$A$50 contains formulas that may produce blanks.

    #2, what do you mean there are too many for conditional formatting? How many are there? It could be done with a macro if you do not want to use CF.

    #3. I have no idea what you mean by this.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    02-18-2006
    Location
    WV
    MS-Off Ver
    2003,2007,2010
    Posts
    69

    Re: Dynamic Drop Down List Using OFFSET With Color

    Ok,

    1) Your formula worked for my list thank you....
    2) I'm on Excel 07 so you can only have 3 conditional formats and I would need 18 so that wouldn't work.
    3) Don't worry about that...
    4) One additional question. My list "AbsenceCode" is on sheet2 and on sheet1 I have a Legend where it shows you what your picking for the abbreviation. Is there a way I can have that "Legend" update when I change my list? Below is my list and ists meaning that reside on sheet2. OR can I get it to show both "AbsenceCodeDesc" and "AbsenceCode" in a list but only select "AbsenceCode" then I wont need the legend....

    Please Login or Register  to view this content.
    Last edited by oxicottin; 08-10-2017 at 03:03 PM.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Dynamic Drop Down List Using OFFSET With Color

    I don't understand what your Legend looks like. If I see your file (see request above) I think it will be a lot clearer.

    You must mean that you have Excel 2003, because the CF restriction was lifted in 2007. I can show you how to do it with macros if you provide the spec for what colors are mapped to what values.

  5. #5
    Registered User
    Join Date
    02-18-2006
    Location
    WV
    MS-Off Ver
    2003,2007,2010
    Posts
    69

    Re: Dynamic Drop Down List Using OFFSET With Color

    Ok, I have 2007 version of not 2003. I colored the list in the "Data" sheet and what I want to accomplish is when selecting a day for an employee the list comes up from the Data sheet which it does and what I select it color codes it to what it is. The only thing I don't have colored is the "X" which means they were here and a "'----" which means its the weekend or were off.
    Attached Files Attached Files

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Dynamic Drop Down List Using OFFSET With Color

    Now I see exactly what you're doing and how you want it to work. Except I still don't understand your question in #4 above.

    Since you already have macros I have provided a macro solution that will use whatever color scheme you define in the Data sheet to color the cells. (You cannot do that with CF). If you change the color scheme on Data, however, it will not automatically go back and re-color cells that are already colored.

    BTW your file is small enough that you don't have to zip it to attach it.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    02-18-2006
    Location
    WV
    MS-Off Ver
    2003,2007,2010
    Posts
    69
    Quote Originally Posted by 6StringJazzer View Post
    Now I see exactly what you're doing and how you want it to work. Except I still don't understand your question in #4 above.
    What I was trying to explain in the end was lets say I added to the data list or changed it. Is there some way I can have the Legend on each employee change as well? Kinda like if i was using MS access tables on a form and updated the table.

  8. #8
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Dynamic Drop Down List Using OFFSET With Color

    Just use formulas in the Legend to refer the list, see attached.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    02-18-2006
    Location
    WV
    MS-Off Ver
    2003,2007,2010
    Posts
    69

    Re: Dynamic Drop Down List Using OFFSET With Color

    Thank you 6StringJazzer that works perfect! Can you show me where the macro is that changes the colors ect, I cant seem to locate it....

  10. #10
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Dynamic Drop Down List Using OFFSET With Color

    In the Worksheet_Change Subs in modules for sheets "Employee 1" and "Employee 2"

  11. #11
    Registered User
    Join Date
    02-18-2006
    Location
    WV
    MS-Off Ver
    2003,2007,2010
    Posts
    69

    Re: Dynamic Drop Down List Using OFFSET With Color

    6StringJazzer, I have a question. Since I have to make a new calendar every year I wanted to try and set it up like a calendar but how I have it. anyway, my question is I went on to MS website and downloaded a excel calendar I thought I could work with but every date says #NUM!. It uses an array and im in no way familiar with that. it goes like this...

    =Days+1+DATE(Calendar1Year,Calendar1MonthOption,1)-WEEKDAY(DATE(Calendar1Year,Calendar1MonthOption,1),WeekdayOption)

    WeekdayOption is each day of the week in the month and that's where the #NUM! is coming from.

  12. #12
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Dynamic Drop Down List Using OFFSET With Color

    I downloaded the template from your link and and I am not having a problem with it. It defaults to start in the current month. What did you change after you downloaded it?

    Array formulas are very powerful but not well documented by Microsoft. There are some good resources out there for learning about them. Here is mine but there are some others that are better.

    This is what it looks like to me:

    calendar.jpg

  13. #13
    Registered User
    Join Date
    02-18-2006
    Location
    WV
    MS-Off Ver
    2003,2007,2010
    Posts
    69

    Re: Dynamic Drop Down List Using OFFSET With Color

    That's weird I didn't do anything and I downloaded it twice. I did get one to load but when I changed the year, day or something it went back to the image below and the other times it just loos like this.
    Attached Images Attached Images

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Create dynamic drop down list from dynamic data source
    By rz6657 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-18-2016, 05:22 PM
  2. Dynamic drop down: offset -1 row
    By jokris in forum Excel General
    Replies: 11
    Last Post: 04-08-2016, 02:42 AM
  3. Dynamic list with Offset and indirect
    By Captainjay in forum Excel General
    Replies: 6
    Last Post: 02-08-2016, 11:52 AM
  4. [SOLVED] find cells with values that fall between dynamic start and end value, color offset (-1,0)
    By ThaGonz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-15-2014, 11:56 PM
  5. dynamic list using offset and indirect
    By ncarrocino in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-07-2013, 05:11 PM
  6. [SOLVED] Adding color to dynamic drop down list
    By madhatter40 in forum Excel General
    Replies: 4
    Last Post: 02-04-2013, 10:51 AM
  7. Using LEFT with OFFSET to get a dynamic drop down list
    By alcopoppa in forum Excel General
    Replies: 6
    Last Post: 01-20-2012, 08:53 AM

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