Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Calculation based on certain criteria | Excel Worksheet Functions | |||
Perform a calculation based on a cell being selected | Excel Worksheet Functions | |||
How to perform lookups based on multiple criteria? | Excel Worksheet Functions | |||
Macro to perform action based on value in cell | Excel Programming | |||
How do I perform a function based on certain criteria? | Excel Programming |