Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default macro to find based on multple criteria & perform a calculation

I'm pretty sure a macro can do this i'm just not versed enough to write it.
I need a macro to use multple criteria to find info on a seperate sheet then
return the result of a division formula. I'll do my best to lay out an
example below.

SHEET 1

Category Jan 07 Feb 07 Mar 07 Apr 07
Acct
PM
PE
ME
EE



SHEET 2

HOURS
Project Date to start Wks to Comp Acct PM
PE ME EE
Build Mar 07 27 4
10 20 2 40
Design Jan 07 3 5
2 10 15 30
Paint Mar 07 5 5
3 12 10 5
Misc Jan 07 27 4
10 20 2 40
Other Jan 07 1 7
12 15 1 30

So I need a macro to start in B2 & find all the Hours on sheet 2 for ACCT in
Jan, divide those hours by wks to comp and continue to loop for all months
and categories. Referencing the example above, the result for Acct in Jan
would be (5/3)+(4/27)+(7/1)=9.81481

Any help or suggestions would be greatly appreciated.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculation based on certain criteria Sarah (OGI) Excel Worksheet Functions 7 April 20th 09 04:33 PM
Perform a calculation based on a cell being selected fluffy Excel Worksheet Functions 2 December 24th 08 05:38 PM
How to perform lookups based on multiple criteria? Brandon[_3_] Excel Worksheet Functions 4 October 19th 08 06:44 PM
Macro to perform action based on value in cell jackie Excel Programming 1 June 21st 07 07:39 PM
How do I perform a function based on certain criteria? SMKDonde Excel Programming 7 May 16th 05 06:12 PM


All times are GMT +1. The time now is 12:10 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"