Year over year counts

maribelbc

New Member
Joined
May 18, 2016
Messages
10
Hello,

I'm tracking inventory movement year over year to get ageing. I have the qty movement annually summed (purchase, sales, adj, etc.). I need to age in <1yr, 1-3yrs, and >3years groups. I'm using Ifs and sum but when the sum results in negative, I still need the positive value within the range to show (that's a purchase within that year range = age) and that value to deduct from the positive qty from the year range before.

ADCDEFGH
1
220162017201820192020202120222023
3
850​
-437​
-200​
-16​
1​
-2​
-100​
850​

So for above sample, the result should be:

<1Year (2023)1-3Years (2020-2022)>3Years (2016-2019)
850195

Please assist. Thank you.
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Hi,

I can't see your formula, but if you use =ABS(number) - it will always give you a positive result ? Perhaps you can integrate it into what you have already ?

cheers
Rob
 
Upvote 0
Hi,

I can't see your formula, but if you use =ABS(number) - it will always give you a positive result ? Perhaps you can integrate it into what you have already ?

cheers
Rob
Thanks, Rob.

I've never used that and not sure how to integrate. Below is another sample.

2014201520162017201820192020202120222023
314​
40​
-18​
-167​
320​
-264​
51​
31​
344​
-152​

<1 Year =IF(AC10<0,"",IF(AC10>0,AC10,""))1-3 Years =IF(SUM(Z10:AB10)<0,"",IF(SUM(Z10:AB10)>0,SUM(Z10:AB10),""))Over 3 Years =IF(SUM(T10:Y10)<0,"",IF(SUM(T10:AB10)>0,SUM(T10:AB10)-SUM(Z10:AB10),""))
426225

This should be:

<1 Year1-3 YearsOver 3 Years
426​
73​

So I think i'm going about this all wrong lol. The -152 would be deducted from the over 3 year count, and if the -qty in 2023 is greater than the over 3 years, it should take away from the 1-3 years.
 
Upvote 0
Where you have Sum(z10:ab10) for example try ABS(Sum(z10:ab10)) to give you an always positive result.

Rob
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
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