View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
cj
 
Posts: n/a
Default extracting and adding numbers

i.m looking for a formula to extract and add hrs in a time sheet.

if a1 is 3cash 2office 2demo
i need a2(cash|office|pay) column to add the 3cash and 2office and
a3(demo|cs|tr) to extract the 2hrs in demo

the orders and combination can change and it could be just 1 dept
eg)a1 is 8pay then a2(cash|office|pay) = 8 and a3(demo|cs|tr) = 0
a1 is 5office 2demo then a2(cash|office|pay) = 5 and a3(demo|cs|tr) = 2
a1 is 2demo 4cash 3tr then a2(cash|office|pay) = 4 and a3(demo|cs|tr)
= 5

any suggestions?

thanks