Solved

Formula Assistance

Posted on 2011-03-21
4
231 Views
Last Modified: 2012-05-11
Hello,

I was wondering if someone can please have a look at the attached sheet and let me know if there is a better way / formula to calculate the previous year’s percentage? (Columns Q and S) I am currently having to filter by species code then by each month but I was hoping to automate it so I only have to enter the formula once and then simply drag it all the way down the page as the current way is taking far too long.

Any suggestions will be greatly appreciated!
 EXAMPLE.xlsx
0
Comment
Question by:vegas86
  • 2
4 Comments
 
LVL 33

Expert Comment

by:jppinto
ID: 35185423
When I open your file, your formula on cell Q12 is like this:

=IF(ISERROR((P12-#REF!)/#REF!);0;(P12-#REF!)/#REF!)

???
0
 

Author Comment

by:vegas86
ID: 35185502
Hi that is because there is no previous year / moth I have started from 2006 so the very first formula will show that. If you look at the one below for 2007 you will see what it supposed to be calculating.
0
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
ID: 35185547
Hello vegas*6

Note that you can do this calculation...

=(P14-P2)/P2

like this

=P14/P2-1

so if you use EDATE to get last year's date and look that up for the relevant species code then you can use this formula in Q2 copied down

=IFERROR(P2/INDEX(P$1:P1,MATCH(1,INDEX((EDATE(G2,-12)=G$1:G1)*(D2=D$1:D1),0),0))-1,0)

and for S2

=IFERROR(R2/INDEX(R$1:R1,MATCH(1,INDEX((EDATE(G2,-12)=G$1:G1)*(D2=D$1:D1),0),0))-1,0)

see attached

regards, barry
26902060.xlsx
0
 

Author Closing Comment

by:vegas86
ID: 35185622
I just applied it to my sheet and it works perfectly! thank you very much Barry for your quick and flawless response!!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now