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

Answer from Blindspots on Stack Exchange
🌐
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.

🌐
Google Support
support.google.com › docs › thread › 158958439 › cell-formula-to-display-different-text-based-off-text-in-another-cell
Cell formula to display different text based off text 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
🌐
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!

🌐
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

🌐
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.
Find elsewhere
🌐
Stack Exchange
webapps.stackexchange.com › questions › 158931 › google-sheets-return-a-text-value-based-on-another-cells-text-value
formulas - Google Sheets - Return a text value based on another cells text value - Web Applications Stack Exchange
September 9, 2021 - I have a set group of "program names" in a column, and want to have another column automatically write the matching "acrononym" for its sister value. For example: Master in Fina...
🌐
Google Support
support.google.com › docs › thread › 191005522 › how-do-i-get-a-cell-to-show-text-based-on-value
How do I get a cell to show text based on value - 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
🌐
Stack Exchange
webapps.stackexchange.com › questions › 151387 › google-sheets-value-in-cell-different-from-text
Google Sheets - value in cell different from text - Web Applications Stack Exchange
March 2, 2021 - In cell B2, you'd use something like this: ... The REGEXEXTRACT will extract the first group of digits it finds, on which math can now operate. Keep in mind that if you only want to extract the number without any further math, you'll need to wrap the REGEXEXTRACT in VALUE: ... This is because REGEXEXTRACT extracts strings. When you apply further math operations, Sheets automatically knows you want to treat the extracted portion as a number.
🌐
Google Support
support.google.com › docs › thread › 274874322 › conditional-formatting-to-display-text-based-of-the-value-of-another-cell
Conditional Formatting to display text based of the value of another cell. - Google Docs Editors Community
May 16, 2024 - 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
🌐
The Bricks
thebricks.com › home › resources › how to auto fill text based on text in another cell in google sheets
How to Auto Fill Text Based on Text in Another Cell in Google Sheets
February 20, 2025 - Now, go back to your main sheet. In cell C2, where you want the first department name to appear, enter the following formula: ... B2 is the value we are looking for (the Employee ID from the current row).
🌐
Google Support
support.google.com › docs › thread › 25072377 › in-sheets-how-to-fill-a-cell-based-upon-a-value-in-another-cell
In Sheets how to fill a cell based upon a value in another cell. - Google Docs Editors Community
January 8, 2020 - 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
🌐
Google Support
support.google.com › docs › thread › 194384614 › how-to-make-cell-in-column-b-display-text-based-on-value-in-column-a
How to make cell in column B display text based on value in column A? - Google Docs Editors Community
December 25, 2022 - 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
🌐
Appsloveworld
appsloveworld.com › google-sheets › 20 › how-to-get-display-text-value-of-a-cell
How to get display/text value of a cell? - appsloveworld.com
How can I get a macro to automatically trigger when a cell reaches a certain value in a Google Sheet? How to display &quot;Browser.msgBox&quot; when a value of a cell increase? How to get cell location whose value is changed with reference to other cell value in Google Apps Script · How to count text based on other cell value in Google Sheets
🌐
Google Support
support.google.com › docs › answer › 78413
Use conditional formatting rules in Google Sheets - Computer - Google Docs Editors Help
Under the "Format cells if" drop-down menu, click Custom formula is. If there's already a rule, click it or Add new rule Custom formula is. Click Value or formula and add the formula and rules. Click Done. Note: Formulas can only reference the same sheet, using standard notation "(='sheetn...
🌐
The Bricks
thebricks.com › home › resources › how to use text from a cell in a formula in google sheets
How to Use Text from a Cell in a Formula in Google Sheets
February 20, 2025 - In a blank cell, enter this formula to see the text it produces: ... With "Jan_Sales" in B1, this formula will correctly display the text 'Jan_Sales'!D:D. Notice the single quotes (') enclosed in double quotes ("). These are crucial for making ...