Populate text when 4 cells consecutively increase

pardesi6

New Member
Joined
Aug 27, 2015
Messages
2
Hi there -

Haven't been able to find an answer to this exact question, and am not able to get nestedIFs to work. In short, I'm doing a trend analysis based on ranks that looks like the below:

Jan | Feb | Mar | Apr | TREND
2 | 5 | 6 | 8 | GROWING
3 | 1 | 7 | 3 | NO TREND
4 | 2 | 8 | 7 | NO TREND

I want excel to populate this "Trend" column when it sees 4 months with consecutive increases. Thoughts?

Thanks in advance for your help!
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
=IF(AND(A2<B2,B2<C2,C2<D2),"Growing","No Trend")

how does that work for you?
 
Upvote 0
=IF(AND(A2 < B2,B2 < C2,C2 < D2),"Growing","No Trend")<b2,b2<c2,c2<d2),"growing","no trend")<="" html=""></b2,b2<c2,c2<d2),"growing","no>
 
Upvote 0
cooper645,

You might need to place spaces between your ">" or "<" signs.
 
Upvote 0
If you are not wanting to hard code the 4 columns, you could use:

{=IF(SMALL(A2:D2,COLUMN(A2:D2))=A2:D2,"Growing", "No Trend")}
This is an array formula, and will need to be entered using CTRL + SHIFT + ENTER.

The advantage is, you can dynamically change D2 to any other column... so if you want to know that the last 7 columns are incrementing... it will work...

Good luck,

CN.
 
Upvote 0
Similarly, with a regular formula:
Code:
=IF(3=SOMPRODUCT(--(B2:D2>A2:C2)),"Growing","No Trend")
 
Upvote 0
Thanks, guys. The if/and formula is only semi-working as it's not catching rows that don't have a trend (not sure why - maybe it's because some columns are blank?). the array formula is giving me an error (first row).

Here's a snapshot of real data. It's hardcoded #s with the blanks having nothing in them.

MayJuneJulyAugustTREND
2111#VALUE!<--array formula
4222Growing<--IF/AND formula
5333Growing
291584Growing
571845Growing
66Growing<--Would expect to see "no trend" here
9597Growing
233125398Growing
279Growing
4031610Growing
4384644411Growing
1714712Growing
48913Growing
14Growing
33418215Growing
16Growing
1968117Growing
18161118Growing

<colgroup><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
Ah, new information - blank cells: :rolleyes:
Code:
=IF(AND(3=SOMPRODUCT(--(B2:D2>A2:C2)),COUNT(A2:D2)=4),"Growing","No Trend")

Edit: I see a lot of unexplainable "Growing" in your example data???
 
Upvote 0

Forum statistics

Threads
1,214,914
Messages
6,122,211
Members
449,074
Latest member
cancansova

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