Solved

Formula Assistance

Posted on 2011-03-21
4
232 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

776 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