Need Formula

CARBOB

Well-known Member
Joined
Jun 6, 2005
Messages
1,870
Need a formula in column X, if the value in W23 is smaller than W22, return a "D", if larger, return a "U", if the same return a "R".
Excel Workbook
WX
231D
249U
258U
261D
DIGIT REPEATS
Excel 2007
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
=LOOKUP(w23-w22,{-999,0,0,999},{"D","R","U"})

The "R" doesn't work. Mr Poulsom, the values are running from bottom to top.
Excel Workbook
WX
231D
249U
258U
261U
271U
DIGIT REPEATS
Excel 2007
Cell Formulas
RangeFormula
X23=LOOKUP(W23-W24,{-999,0,0,999},{"D","R","U"})
X24=LOOKUP(W24-W25,{-999,0,0,999},{"D","R","U"})
X25=LOOKUP(W25-W26,{-999,0,0,999},{"D","R","U"})
X26=LOOKUP(W26-W27,{-999,0,0,999},{"D","R","U"})
X27=LOOKUP(W27-W28,{-999,0,0,999},{"D","R","U"})
 
Upvote 0
Looking for a formula in column O, if the value in column N increases, return a "U", Up. If the value decreases, return a "D", Down. If the value is the same, return a "R", Repeat.
Excel Workbook
MNO
509/08/146U
609/07/143D
709/06/149R
809/05/149
SKIPSUMS
Excel 2007
 
Last edited:
Upvote 0

Forum statistics

Threads
1,222,310
Messages
6,165,263
Members
451,949
Latest member
bovacik

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