Basic IF/OR/AND formula syntax, to analyse a number value series and return Yes or No or NoChange as to whether the value is trending up or down..?

MickFish

New Member
Joined
Sep 27, 2017
Messages
7
I wish to analyse a number series and determine if the latest number is higher or lower when compared to previous number values..?

=IF(AK2<>"",IF(AK2=5,"NO",IF(OR(AND(AK2<>"",AK2<AH2),AND(AE2<>"",AK2<AE2),AND(AB2<>"",AK2<AB2),AND(Y2<>"",AK2<Y2),AND(V2<>"",AK2<V2),AND(T2<>"",AK2<T2),AND(Q2<>"",AK2<Q2),AND(N2<>"",AK2<N2),AND(L2<>"",AK2<L2),AND(J2<>"",AK2<J2),AND(G2<>"",AK2<G2),AND(E2<>"",AK2<E2)),"YES" then etc etc for the No and NoChange

Example data:
3.4 RiskScoreQ2 -15-163.5 RiskScore3.6 RiskScore3.7 RiskScoreQ3 -15-164.1 RiskScoreQ4 -15-164.3 RiskScore4.4 RiskScoreQ1 -16-174.5 RiskScoreQ2 -16-174.6 RiskScoreQ3 -16-174.7 RiskScoreQ4 -16-174.8 RiskScore
Very High5 Very High5Very High5 High4 Moderate3Moderate3 High4 High4 Moderate3 Moderate3
<colgroup><col width="64" style="width: 48pt;" span="29"> <tbody> </tbody>

Simplified data:
scorescorescorescorescorescorescorescorescorescorescore
5554334433
<colgroup><col width="64" style="width: 48pt;" span="11"> <tbody> </tbody>
Sometimes there is no value, and the formula needs to ignore these Null values..

Thanks kindly for your time..
MickFish










ddd
 
G'day Oldbrewer
I managed to get your formula to work for data formatted similar to your earlier table, with some erroneous results (in Red). Q: What does the '/3' mean in the syntax of your formula?

OFFSET:
=IF(K4<(OFFSET($A$1,3,MATCH(LARGE($A$1:$K$1,2),$A$1:$K$1,0))+OFFSET($A$1,3,MATCH(LARGE($A$1:$K$1,3),$A$1:$K$1,0))+OFFSET($A$1,3,MATCH(LARGE($A$1:$K$1,4),$A$1:$K$1,0)))/3,"down","up")

I got similar results using FORECAST. The Up/Down column has IF statement =IF(K4<M4, "Down","Up")..
FORECAST:
=FORECAST(K4,$A$4:$K$4,$A$1:$K$1)

But I could not get TREND to work.
TREND:
{=TREND($A$1:$K$1,$A$4:$K$4,K4)}

Any comments are appreciated, thanks.
1234567891011Known Ys
1234567891011Known Xs
scorescorescorescorescorescorescorescorescorescorescore Up/DownFORECASTTRENDOFFSET
155 4334433Down3.530303#VALUE!down
4434242 5Up3.511364#VALUE!up
222 33 2452Down3.539773#VALUE!down
52 3433 3Down3.530303#VALUE!down
3 3 5 Down3.558712#VALUE!down
333 333 Down3.558712#VALUE!down
4 5554322Down3.539773#VALUE!down
2 3332114Up3.520833#VALUE!up
32 3332142Down3.539773#VALUE!down
55555 2Down3.539773#VALUE!down
33322333 44Up3.520833#VALUE!up
<colgroup><col width="64" style="width: 48pt;" span="11"> <col width="73" style="width: 55pt; mso-width-source: userset; mso-width-alt: 2588;"> <col width="64" style="width: 48pt;" span="3"> <tbody> </tbody>
 
Upvote 0

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Hi Oldbrewer
Just wanted to add, that the examples of using these Functions use data set out in Columns, whereas my data is set out in Rows.. Maybe my attempt to flip the syntax to suit is why I am having difficulty? MickFish
 
Upvote 0
remember to get the "trend" I compare a result with the average of the previous 3 results hence /3

the principle is the same for data in columns but you need a blank column between each pair of columns to put the up or down or level for each value

blanks in the data are a bit of a problem
 
Upvote 0

Forum statistics

Threads
1,215,465
Messages
6,124,977
Members
449,200
Latest member
Jamil ahmed

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