google-sheets

"format" true/false to something like "yes/no" in Google Sheets


Note that I'm only looking to "format" the info.

Background: we have a Google Sheet that downloads raw info from a BigQuery table. One of the fields is Boolean so the results show "true"/"false".

We have another tab on that GS that does a query. For display purposes, we'd like to show something like "Y/N" or maybe even "X""(blank)" instead of "True/False. We could create like a helper column on the tab that contains the BigQuery info to change true/false to what we want, and then query off of that, but the raw data is already pretty big and we'd prefer not to keep adding more columns if we can help it.

Here's a sample GS

Is there some way to do this?


Solution

  • try:

    =INDEX(IF(A1:A=""; "X"; IF(A1:A=TRUE; "Y"; "N")))
    

    enter image description here