Help with formula

Fiveshorter

New Member
Joined
Jul 14, 2017
Messages
18
Hi,

I have a sheet which lists the number of parts for every supplier. I have a column for a list of current month parts, last month parts and parts of the last 12 months. I have been trying to build a formula in order to compare the three columns with comments "NEW","DECREASE","INCREASE","SAME".

NEW - the parts are only new if column "parts 12 months" is blank or has a 0 in it.
DECREASE - There is only a decrease if the column "Current month parts" is less then "Last month parts"
INCREASE - There is only a increase if the column "Current month parts" is more then "Last month parts"
SAME - It is only the same if both current and last month parts are equal.

If the column "parts 12 months" is 0 or blank it is always new,

Any help on this would be greatly appreaciated!


Cust_IDNameCurrent month partsLast month partsParts 12 monthsComment
1John23NEW
2Jerry3412DECREASE
3Hannah4234INCREASE
4Zach5623DECREASE
5Terry661SAME
6Mark7811DECREASE
7Matthew8410INCREASE
8Luke900NEW
9John12120NEW

<tbody>
</tbody>
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

Book1
ABCDEF
1Cust_IDNameCurrent month partsLast month partsParts 12 monthsComment
21John23NEW
32Jerry3412DECREASE
43Hannah4234INCREASE
54Zach5623DECREASE
65Terry661SAME
76Mark7811DECREASE
87Matthew8410INCREASE
98Luke900NEW
109John12120NEW
Sheet1
Cell Formulas
RangeFormula
F2=IF(OR($E2="",$E2=0),"NEW",IF($C2<$D2,"DECREASE",IF($C2>$D2,"INCREASE","SAME")))


WBD
 
Upvote 0

Forum statistics

Threads
1,214,893
Messages
6,122,118
Members
449,066
Latest member
Andyg666

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