search last number in row greater than

lakke2120

New Member
Joined
Aug 21, 2014
Messages
32
Hello,

I am hoping someone can help me with figuring out a formula to check if the last value in a row is greater than the first value in the same row then yes else no. There are only 4 cells in the row and they may have blanks. If the first cell is 2 and the next is 3 but the next is 2, then it is a no because the last value is the row is a 2 and that is not greater than the first value. I hope I explained this right. Thank you very much
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
I am not a formula expert, but let's see if the following helps. It made sense to me.
Simply finding the last numeric value in the given range (with LOOKUP), and first numeric value in the same range (with INDEX array formula) then comparing these 2. Empty cells are considered.

1- Assuming the data range is A1:D1 (you can change the range in the formula, either with range name or a different range)
2- This is a CSE formula that you enter into the cell (F2 on the cell), paste this formula inside, and hit Ctrl + Shift + Enter. (Index part requires it to be an array formula)

Code:
=IF(LOOKUP(2,1/(ISNUMBER(A1:D1)),A1:D1)>INDEX(A1:D1,MATCH(TRUE,ISNUMBER(A1:D1),0)),"yes","no")
 
Upvote 0
Are you getting an error meg., the wrong number????
Are your numbers actual numbers or text?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,185
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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