Trying to compare two columns with text and number

Davebro

Board Regular
Joined
Feb 22, 2018
Messages
135
Office Version
  1. 365
  2. 2021
  3. 2016
Platform
  1. Windows
Is it possible to compare the numbers in text and say if column A is Up or down from column B.
(Class 1 is better than class 2).

Book2
ABC
1Class 6Class 6
2Class 6Class 6
3Class 3Class 4Up
4Class 4Class 4
5Class 5Class 6Up
6Class 5Class 5
7Class 4Class 3Down
8Class 4Class 4
9Class 4Class 4
10Class 6Class 5Down
11Class 4Class 4
12Class 6Class 6
Sheet1
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
How about
Excel Formula:
=LET(a,RIGHT(A1,2),b,RIGHT(B1,2),IF(a=b,"",IF(a>b,"down","up")))
 
Upvote 1
Solution
Try:
Excel Formula:
=IF(A1=B1,"",IF(A1<B1,"Up","Down"))
 
Upvote 1
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,970
Messages
6,175,699
Members
452,667
Latest member
vanessavalentino83

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top