+ Reply to Thread
Results 1 to 9 of 9

fill cells with yes if a value is true

  1. #1
    Registered User
    Join Date
    05-17-2015
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    21

    fill cells with yes if a value is true

    I have a spreadsheet with week 1, week 2 across columns for 1 year.
    In a row I have the frequency drop down 1w (which = 7 days), 2w (which = 14 days)
    I would like to return "yes" in the cells below week 1 if the frequency = 1w. Same with select 2w and every second week the cell returns "yes"
    Attached Files Attached Files

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    365 Version 2409
    Posts
    2,789

    Re: fill cells with yes if a value is true

    Same with select 2w and every second week the cell returns "yes"
    What do you mean every second week. You mean every even numbered week?

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: fill cells with yes if a value is true

    Hi, welcome to the forum

    Not sure where you want to put this, but it sounds like you want something like =IF(C5="","","Yes")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    365 Version 2409
    Posts
    2,789

    Re: fill cells with yes if a value is true

    I'm going to assume what you mean is the first week is a yes no matter what and if frequency is 1W then everything is a yes after that.
    If 2W, then week1 is a yes then 3, 5, 7 etc.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-17-2015
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    21

    Thumbs up Re: fill cells with yes if a value is true

    Hi Skywriter,

    Not sure if this is how I reply to you,
    Yes that is what I was after.
    What would you change to include other changes like 3W, 4W, 12W etc.
    I am doing this so I can add 4 week and 12 week checks for reminder to complete jobs on my aquaponics set up.

  6. #6
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,940

    Re: fill cells with yes if a value is true

    see the attached file, one column was created for Starting week of the tank cleaning
    Attached Files Attached Files
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  7. #7
    Registered User
    Join Date
    05-17-2015
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    21

    Re: fill cells with yes if a value is true

    Good evening nflsales,

    Thanks for the update, this works well until you select 12W, it seems to be only picking up the first digit in 12 so fills like it is 1. You can see this also if you add 26W, so picks up the two and fills every second cell?

    Cheers Iain

  8. #8
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,940

    Re: fill cells with yes if a value is true

    E5=IF(AND($C5<=E$2,MOD(E$2-$C5,SUBSTITUTE($D5,"W","")+0)=0),"Yes","")
    Then try the above formula and copy across

  9. #9
    Registered User
    Join Date
    05-17-2015
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    21

    Re: fill cells with yes if a value is true

    THANK YOU,

    Much appreciated

    Cheers Iain

+ 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. Fill row if condition is true
    By norlax in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-20-2014, 01:05 PM
  2. Fill Cell with a certain color if item is true
    By Ian Claydon-Butler in forum Excel General
    Replies: 1
    Last Post: 02-24-2014, 11:13 AM
  3. What is best to use for helper cells 0 or 1, typed true or false or =true =false
    By Gingermuppet in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-20-2014, 10:41 PM
  4. Fill if True
    By bnwash in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 09-11-2012, 03:27 PM
  5. Replies: 1
    Last Post: 09-07-2011, 05:57 PM

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