Q
Q
Quazorge2019-12-14 21:52:08
Google Sheets
Quazorge, 2019-12-14 21:52:08

How to compare two numbers in one cell in Google Sheets?

Good afternoon, I'm looking for information about comparing numbers or numbers in one cell and I can't find it anywhere. Maybe I'm not looking correctly. For example, the cell contains the numbers 4:6, so that the function understands that 4<6 means that the adjacent cell is highlighted in green or another color. Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Grigory Boev, 2019-12-17
@Quazorge

Use REGEXEXTRACT ( text ; regular expression ) to extract chunks of text so you can compare later, e.g. if the first is less than the second
To highlight an adjacent cell, you can use Format - Conditional Formatting

D
dollar, 2019-12-14
@dollar

If it's a string, then you need to use string functions in the conditional formatting formula to pull those numbers out of the cell, and then you can compare them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question