+ Reply to Thread
Results 1 to 10 of 10

Replace contents with checkmark

  1. #1
    Registered User
    Join Date
    11-25-2022
    Location
    Texas
    MS-Off Ver
    Office 365
    Posts
    4

    Replace contents with checkmark

    I want to place a checkmark in a cell by entering any input in a cell then replace that data with a checkmark.

    For example...

    I want to take attendance of a class. Beside each student's name is a column showing whether he was in attendance or not. If he attended a checkmark will appear in the cell next to the name of the student.

    I want to do this by clicking on that cell and entering any key, let's say the spacebar, although it could be any key. But, instead of the entered character being displayed in the cell I want a simple checkmark. So the checkmard needs to replace any character entered. This way I can simply go down the list and hit the spacebar or any key and a checkmark appears. Or, if no keystroke is made, then the cell is left blank. To clear the checkmark all that should be needed is to place the cursor in the cell and hit delete.

    I can't figure this out after hours of attempts. I want to try to not use a macro and I can't use VB.

    Any Ideas please?

    Tex

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,936

    Re: Replace contents with checkmark

    Select the column(s) that will hold the check marks.
    Format font: Marlett
    type letter: a or b = checkmark
    r = "x"
    -----------------
    Then you can use conditional formatting for, say, green if 'a' or red if 'r'
    Last edited by protonLeah; 11-25-2022 at 07:30 PM.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    11-25-2022
    Location
    Texas
    MS-Off Ver
    Office 365
    Posts
    4
    Quote Originally Posted by protonLeah View Post
    Select the column(s) that will hold the check marks.
    Format font: Marlett
    type letter: a or b = checkmark
    r = "x"
    -----------------
    Then you can use conditional formatting for, say, green if 'a' or red if 'r'
    I don’t want the cell colored. What I want is when I hit any key a check mark appears. No color

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,936

    Re: Replace contents with checkmark

    I'm afraid you did not read my post

    Did you even try the first part?
    Last edited by protonLeah; 11-25-2022 at 09:29 PM.

  5. #5
    Registered User
    Join Date
    11-25-2022
    Location
    Texas
    MS-Off Ver
    Office 365
    Posts
    4
    Quote Originally Posted by protonLeah View Post
    I'm afraid you did not read my post

    Did you even try the first part?
    I’m sorry. Let me try that first part. Thanks

  6. #6
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Replace contents with checkmark

    Use custom number formatting: "x";"x";"x";"x"

    checkmark.png
    Last edited by josephteh; 11-25-2022 at 10:48 PM. Reason: Attach image file

  7. #7
    Registered User
    Join Date
    11-25-2022
    Location
    Texas
    MS-Off Ver
    Office 365
    Posts
    4
    Quote Originally Posted by theeetexan View Post
    I’m sorry. Let me try that first part. Thanks
    I’m sorry but that didn’t work.

    There needs to be a way to create a conditional formatting rule that places a check mark in a cell when any key is struck. I can’t find it so far

    Tex

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,171

    Re: Replace contents with checkmark

    There needs to be a way to create a conditional formatting rule that places a check mark in a cell when any key is struck. I can’t find it so far
    That's because Conditional Formatting does what it says on the tin, formatting. It can adjust the formatting of a cell but it can't change the content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  9. #9
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,410

    Re: Replace contents with checkmark

    see quick demo attached - data validation is in 'B2' - small VBA macro in Sheet1 module - the data container is a 'structured table' - to extend make an entry in 'A3' - data validation will expand/contract as data is added/deleted from table.
    Sorry just re-read first post - you do not want macro/VBA - I will leave the post up as a solution as it is not possible any other way (as far as my knowledge tells me.)
    Attached Files Attached Files
    Last edited by torachan; 11-26-2022 at 06:17 AM.
    Torachan,

    Mission statement; Promote the use of Tables, Outlaw the use of 'merged cells' and 'RowSource'.

  10. #10
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: Replace contents with checkmark

    Select all cells in witch you want to see check mark if the cell is not empty, then Go to Format Cells>Custom format and in Type box
    write
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In Format Cells window go to Font and choose Marlett. Then you can type anything in those cells and they will always show a checkmark
    Diana Tanase


    If the solutions offered helped you to solve your problem, then mark the thread as SOLVED (thread tools in the top menu) and you can click on * to add reputation to those who helped you, as a way to say thank you !

+ 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. VBA to replace cell contents
    By Cgri_85 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-10-2021, 06:00 AM
  2. [SOLVED] VBA to replace contents of a cell using if
    By Muktar888 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-29-2017, 12:32 PM
  3. Find and replace contents
    By jdaich in forum Excel General
    Replies: 8
    Last Post: 05-26-2017, 01:09 PM
  4. Find and Replace the contents of one cell with the contents of another
    By thechevs in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-30-2014, 06:48 AM
  5. [SOLVED] Insert a checkmark by selecting a cell, remove checkmark by deselecting the cell.
    By sherryp5165 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-11-2013, 05:46 PM
  6. [SOLVED] replace cell contents
    By Nancy B in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-16-2005, 01:06 PM
  7. How do I replace the contents of a cell with its value instead of.
    By Jean in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-03-2005, 05:06 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