You can do this with a formula and copy down:

 ="Hi "& B4 &", I'm reaching out to you today..."
Answer from Ed Nelson on Stack Overflow
🌐
Reddit
reddit.com › r/googlesheets › trying to display text based on same cell value
r/googlesheets on Reddit: Trying to display text based on same cell value
June 4, 2024 -

Hi there! I have a workbook that I use to track all my reading related activities, one of them being a TBR (to be read) list which includes titles, authors and genres of books I want to read. It also has a column indicating whether or not I already own the book. All this data is pulled from a master sheet in the workbook.

In the same sheet, I have a “random book generator”. I select the genre I want to read then click the check box to randomly generate a book that is of said genre. (It will also tell me if I own the book or not). What I am trying to do is display text like “you do not have any books on your TBR that identify as the selected genre” if that criteria is met. Right now it just displays the default #N/A. I think I copied the random generator formula from the internet somewhere so I’m not too comfortable messing with it. I’ve tried changing the IF to IFS and adding M7=“#N/A”, “you do not have any books on your TBR that identify as the selected genre” At the end but that didn’t work. It was a half hearted attempt lol.

Any help would be appreciated!

Picture 1: the table of books Picture 2: the random book generator Picture 3: the formula in cell M7 which would either display the title of the book, or in this case #N/A since I don’t have any nonfiction books on my list. This is the cell that I want to display “you do not have any books on your TBR that identify as the selected genre” instead of #N/A.

Discussions

formulas - How to add text conditional on numerical ranges in Google Sheets? - Web Applications Stack Exchange
I'm using Google Sheets and I want to display certain text based on the numerical value of another cell. I am a teacher trying to create an assignment where students have to find the best zombie More on webapps.stackexchange.com
🌐 webapps.stackexchange.com
Formula to display text based off a cell in another sheet - Google Docs Editors Community
Skip to main content · Google Docs Editors Help · Sign in · Google Help · Help Center · Community · Google Docs Editors · Terms of Service · Submit feedback · Send feedback on More on support.google.com
🌐 support.google.com
google sheets - Is it possible to give a cell a different value than it displays? - Stack Overflow
What I mean by this is maybe explained easiest with an example: I habe a list of items and every item has a name and an ID. I want to sort that list by ID, with the exception to have item "XYZ... More on stackoverflow.com
🌐 stackoverflow.com
In Sheets how to fill a cell based upon a value in another cell. - Google Docs Editors Community
Skip to main content · Google Docs Editors Help · Sign in · Google Help · Help Center · Community · Google Docs Editors · Terms of Service · Submit feedback · Send feedback on More on support.google.com
🌐 support.google.com
January 8, 2020
🌐
FormulasHQ
formulashq.com › home › blog › how do you make a cell say something based on another cell in google sheets?
How do you make a cell say something based on another cell in Google Sheets? — FormulasHQ
October 9, 2024 - The IF function is a versatile tool in Google Sheets that allows you to perform logical tests and make decisions based on the results. By using the IF function, you can make a cell say something textually based on the value of another cell.
Top answer
1 of 1
1

IFS

You could use nested IF functions but they are hard to follow visually and your use case lends itself well to using the IFS function. IFS is designed to evaluate multiple conditions and return the value associated with the first true condition.

I posted the formulas below in a demo Google Sheet here

  # Basic Format
  
  =IFS(condition1, value1, [condition2, …], [value2, …])
  
  # where 'x' is a cell reference
  
=IFS( x<20, "Low Risk",
      x<50, "Medium Risk",
      x<100, "High Risk",
      x>99, "Evacuate Immediately" )

Impact of Invalid Source Data

The mathematical comparison operators < > behave unexpectedly when numbers are compared to either text or NULL values.

  # where cell at ref 'x' has value "this" 
  # where cell at ref 'y' has NULL value

  =x<2         =y<2
  ="this"<2    =""<2
  =FALSE       =TRUE

  =x>2         =y>2
  ="this">2    ="">2
  =TRUE        =FALSE

This can be avoided using only numbers in the data but optionally the formula can test for these values and manage.

  # where cell at ref 'x' has value "this" 
  # where cell at ref 'y' has NULL value

  # Test for text value
 
  =ISTEXT(x)       =ISTEXT(y)
  =ISTEXT("this")  =ISTEXT("")
  =TRUE            =FALSE
 
  # Test for NULL value
 
  =x=""       =y=""
  ="this"=""  =""=""
  =FALSE      =TRUE

=IFS( OR(ISTEXT(x), x=""), "", 
      x<20, "Low Risk",
      x<50, "Medium Risk",
      x<100, "High Risk",
      x>99, "Evacuate Immediately" )

Negative Values
Also note that the formula will return "Low Risk" for negative values, which presumably are an indication of an error. If different behavior is preferred a x<0 check can be added at the beginning of the function.

=IFS( OR(ISTEXT(x), x="", x<0), "", 
      x<20, "Low Risk",
      x<50, "Medium Risk",
      x<100, "High Risk",
      x>99, "Evacuate Immediately" )

Demo Sheet
https://docs.google.com/spreadsheets/d/1q2Xy_2FZxIC6ToKPUHJEBhV-llg9KMSBgWNa0QB0m_A#gid=2100307022

🌐
Statology
statology.org › home › google sheets: how to use if function with text values
Google Sheets: How to Use IF Function with Text Values
July 31, 2023 - This tutorial explains how to use an IF function with text values in Google Sheets, including several examples.
Find elsewhere
🌐
Excel Insider
excelinsider.com › home › our blog › google sheets functions › return value in another cell if cell contains text in google sheets
Return Value in Another Cell If Cell Contains Text in Google Sheets - Excel Insider
June 27, 2025 - For exact matches, use =IF(A1=”Shipped”, B1, “”). This returns another cell’s value only when the text matches exactly, including case and spacing. This can happen due to case sensitivity, extra spaces, or unexpected characters.
🌐
Ablebits
ablebits.com › ablebits blog › google sheets tips › google sheets functions › google sheets if function – usage and formula examples
Google Sheets IF function – usage and formula examples
February 27, 2023 - As with the other Google Sheets functions, you don't need to enter the address of the cell manually – a mouse click is enough. Then enter comma (,) and specify the second argument. The second argument is a value that F2 will return if the condition is met. In this case, it will be the text "Our Country".
🌐
Stack Overflow
stackoverflow.com › questions › 74857419 › is-it-possible-to-give-a-cell-a-different-value-than-it-displays
google sheets - Is it possible to give a cell a different value than it displays? - Stack Overflow
I found a solution for the first ID (Hans): Custom number format for that cell:"0;0;"24". It will show the value 0 as '24'. That doesn't help for Franz tho. Here I want a value between 5 and 7 showed as '??'. ... Save this answer. ... Show activity on this post. A possible solution would be creating a second ID and sorting the values based on this new ID.
🌐
YouTube
youtube.com › watch
How To Show Text Value Based on Cell Value using Custom Formatting - YouTube
This video will teach you How To Show Text Value Based on Cell Value using Custom Formatting in Microsoft Excel.Subscribe to this channel; https://www.youtu...
Published: April 27, 2021
🌐
YouTube
youtube.com › watch
Conditional Formatting based on another cell | Google Sheets
Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.
🌐
Reddit
reddit.com › r/googlesheets › how to display a cell based off another cells value.
r/googlesheets on Reddit: How to display a cell based off another cells value.
February 21, 2022 -

Hello!

I am creating myself a grocery list that will display the name and location of an item on a list on another google sheet (same workbook) based on if the quantity of a cell <0 (if I need it or not) but I don't know how to display another cells data based on the first cell. If someone could help me I would gladly share a Blank copy for anyone to use once its completed because I know its going to be super useful, Thanks!

🌐
Reddit
reddit.com › r/googlesheets › any way to pull a list of names/text based on the value in another cell?
r/googlesheets on Reddit: Any way to pull a list of names/text based on the value in another cell?
March 25, 2023 -

Hey all,

Looking for some help finding the right function! I am trying to make one cell make a list based on text from another column if a cell in the same row has a number below a certain value. Here's an example for context:

List of Staff With Expired Certification: [This is where I want the list - Ideally this would say "John, Jack" based on the table below]
Staff Expiration Year
John 22
Jean 24
Jack 19

In this example, it's pulling John and Jack as their certifications are expired. Otherwise, if there is a better way to organize this list, please let me know!

As a bonus, if there is a function to count the number of staff with expired certifications, that would be great too!

Thanks everyone!

🌐
LiveFlow
liveflow.com › product-guides › conditional-formatting-based-on-another-cell-value-in-google-sheets-explained
Conditional Formatting Based on Another Cell Value in Google Sheets: Explained | LiveFlow
Enter the following formula in a text box “=$C4>=$E$20”. ... Click “Done” at the bottom right. ... (i) if the range selection is correct as the coloring and style rule is applied to the selected range entirely; ... (iii) whether the formula is valid and is input correctly. The formula needs to start with the “=” sign. You must check if the reference type, whether relevant, partial absolute, or absolute, is appropriate. In the example, you want to test each cell (from C4 to C18) in Column C, so you need to lock the column of the tested cells by adding “$” next to the “C” in the formula.
🌐
Zapier
zapier.com › productivity › app tutorials
How to use conditional formatting in Google Sheets | Zapier
June 23, 2024 - This will display a complete list of any existing rules. You can also quickly delete any rules by selecting the Remove rule icon, which looks like a garbage can. ... In Google Sheets, conditional formatting allows you to dynamically change a cell's text style and background color based on custom rules you set.
🌐
ExtendOffice
extendoffice.com › home › office tips › excel tips
How to display specific text based on values in another column?
Enter this formula: =IF(A2>201,"Increase",IF(A2<99,"Decrease","Stable")) into a blank cell beside your data, and then drag the fill handle down to the cells which you want to apply this formula, you will get the following result as you need:
🌐
Google Support
support.google.com › docs › answer › 3267071
CELL function - Google Docs Editors Help
"contents" - returns the value contained in the top left cell in reference. "prefix" - returns a text value based on the horizontal text alignment in the cell in reference.
🌐
Google
developers.google.com › google workspace › google sheets › read and write cell values
Read and write cell values | Google Sheets | Google for Developers
July 22, 2026 - This document describes the basics of using the spreadsheets.values resource. Spreadsheets can have multiple sheets, with each sheet having any number of rows or columns. A cell is a location at the intersection of a particular row and column, and might contain a data value.