+ Reply to Thread
Results 1 to 3 of 3

Google Sheets: IF Formula with Checkboxes and Strings

  1. #1
    Registered User
    Join Date
    10-19-2021
    Location
    New York
    MS-Off Ver
    365
    Posts
    1

    Question Google Sheets: IF Formula with Checkboxes and Strings

    Hello!

    Coming back around to Google Sheets and Excel after a long time. Hoping I can get some help with building a logical statement.

    This is what I want to do: I have five checkboxes and I've assigned Data Validation so when a checkbox is ticked, there the TRUE value displays for whatever I've set it to e.g. Granny Smith box is checked so Granny Smith will be the TRUE value. Now, I can take that TRUE value and create an IF statement in another cell to display that TRUE value and false value if the box is ticked or un-ticked respectively. BUT I want to display multiple TRUE values in the same cell for when a check box is ticked, so if Granny Smith, Fuji, and Gravenstein are ticked, I want one cell to display "Granny Smith/Fuji/Gravenstein".

    Here are some screenshots:

    1_Apples.PNG


    And how the checkboxes are validated


    2_Apples.PNG

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Google Sheets: IF Formula with Checkboxes and Strings

    Hello SquirrelousLester and Welcome to Excel Forum.
    If this were being done in excel, I would suggest putting a formula like =IF(A3=TRUE, A$2,"") into cell I3 and then dragging the fill handle across to cell N3.
    Cell G3 could then be populated using: =TEXTJOIN("/",1,I3:N3)
    Don't know how well that translates to google sheets, but perhaps it will help some.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Google Sheets: IF Formula with Checkboxes and Strings

    try this formula in cell G3, and drag down:
    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. (Google App Scripts) Copy and paste value for all Google Sheets contained in one folder
    By bobbiekan in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 4
    Last Post: 09-29-2021, 11:48 PM
  2. [SOLVED] Google sheets script to download file and save it to google drive folder and use it's data
    By western in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 5
    Last Post: 01-18-2021, 01:31 PM
  3. [SOLVED] Google sheets vba to download file and save it to google drive folder and use it's data
    By western in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-14-2021, 08:48 AM
  4. dynamic formula to count through existing and new sheets(In google sheets)
    By wlinksanju in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 11-26-2020, 09:16 PM
  5. Google Apps Script for Google Sheets Pulling Formulas from Master to Several Slave Sheets
    By excelroofing in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 4
    Last Post: 08-22-2018, 02:06 AM
  6. email row contents based on cell values (google sheets populated by google forms)
    By reedg in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 01-13-2016, 02:55 PM
  7. Print Sheets based on checkboxes in UserForm, Checkboxes also control another macro
    By krackaberr in forum Excel Programming / VBA / Macros
    Replies: 34
    Last Post: 03-05-2013, 11:12 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