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!


[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Cust_ID[/TD]
[TD]Name[/TD]
[TD]Current month parts[/TD]
[TD]Last month parts[/TD]
[TD]Parts 12 months[/TD]
[TD]Comment[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]John[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD][/TD]
[TD]NEW[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Jerry[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]12[/TD]
[TD]DECREASE[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Hannah[/TD]
[TD]4[/TD]
[TD]2[/TD]
[TD]34[/TD]
[TD]INCREASE[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Zach[/TD]
[TD]5[/TD]
[TD]6[/TD]
[TD]23[/TD]
[TD]DECREASE[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Terry[/TD]
[TD]6[/TD]
[TD]6[/TD]
[TD]1[/TD]
[TD]SAME[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Mark[/TD]
[TD]7[/TD]
[TD]8[/TD]
[TD]11[/TD]
[TD]DECREASE[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Matthew[/TD]
[TD]8[/TD]
[TD]4[/TD]
[TD]10[/TD]
[TD]INCREASE[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Luke[/TD]
[TD]9[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]NEW[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]John[/TD]
[TD]12[/TD]
[TD]12[/TD]
[TD]0[/TD]
[TD]NEW[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

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,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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