+ Reply to Thread
Results 1 to 5 of 5

Button for populating cell with '1' IF row contains certain characteristics

  1. #1
    Registered User
    Join Date
    01-21-2022
    Location
    Oxford, England
    MS-Off Ver
    2016
    Posts
    21

    Button for populating cell with '1' IF row contains certain characteristics

    Hoping you can help

    Please see attached spreadsheet

    D007.xlsm

    I would like a button that says 'Populate 1' above the cell that says 'Item', and any blank cell between the F and J column will populate with '1' IF the row contains either PI, VI, FT or TR (would be in the C column)

    It needs to be for the entire column and not a specific set of cells as the length of this spreadsheet can vary.

    How can I go about doing this?
    TIA

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: Button for populating cell with '1' IF row contains certain characteristics

    Hi,

    You could approach it like this..

    Please Login or Register  to view this content.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,027

    Re: Button for populating cell with '1' IF row contains certain characteristics

    Another approach:
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  4. #4
    Registered User
    Join Date
    01-21-2022
    Location
    Oxford, England
    MS-Off Ver
    2016
    Posts
    21

    Re: Button for populating cell with '1' IF row contains certain characteristics

    Thank you both, they both work perfectly.

    There has been an oversight on my part, though - I only want those cells to populate if the the yellow cells (F14-J14) also contain any value.

    Thanks again

  5. #5
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,027

    Re: Button for populating cell with '1' IF row contains certain characteristics

    Try:
    Please Login or Register  to view this content.

+ 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. Replies: 9
    Last Post: 02-28-2019, 05:52 PM
  2. [SOLVED] Avoiding Special Characteristics in the cell
    By Sekars in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-12-2016, 05:47 AM
  3. Populating ComboBox based on Option button in excel userform
    By dotchiejack in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-05-2016, 07:41 AM
  4. [SOLVED] Populating combo box with different lists depending on Option Button selection
    By HeyInKy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-26-2014, 07:17 PM
  5. [SOLVED] Populating a userform from a search button and editing the workbook
    By jonesdwj in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-16-2013, 01:55 AM
  6. Command button not populating correctly
    By taichi56 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-18-2009, 10:32 AM
  7. Partially Populating a form with a command button
    By glenness in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-11-2007, 06:00 AM

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