Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default SUMIF using cells with commas in

I have a template budget which has a list of activities and the associated
time (Hours) and Costs (GBP) in the column next to them, while in the first
column is the task code (see below).

Task code Task Cost (GBP) Hours
1 Task 1 1000 10
2 Task 2 2000 20
3 Task 3 3000 30
4 Task 4 4000 40
5 Task 5 5000 50
6 Task 6 6000 60
7 Task 7 7000 70

We then map these codes to several milestones in order to build up an idea
of how much effort and spend is needed to achieve these milestones (such as
in the table below).

Mapped task codes Deliverable Cost (GBP) Hours
1,2,7 Deliverable 1 10000 100
3,4 Deliverable 2 7000 70
5 Deliverable 3 5000 50
6 Deliverable 4 6000 60

What I want to know is how to create a formula to go in the Cost and Hours
column of the second table that will automatically calculate the Hours and
Cost based upon the numbers entered in the first column of the second table
(e.g. calculate the 10000 based upon 1,2,7 being entered in the first column)
- anyone got any ideas?


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default SUMIF using cells with commas in

For those of you interested I have managed to get an answer to this.

Create a user defined function to split the values using the code below

Function SplitIt(rngIn As Range) As Variant
SplitIt = Split(rngIn.Value, ",")
End Function

and then use:
=SUMPRODUCT(SUMIF(LIST OF TASKS,splitit(TASK MAPPING) ,COST))

e.g. =SUMPRODUCT(SUMIF(A2:A8,splitit(A10),C2:C8))

"jellyroller" wrote:

I have a template budget which has a list of activities and the associated
time (Hours) and Costs (GBP) in the column next to them, while in the first
column is the task code (see below).

Task code Task Cost (GBP) Hours
1 Task 1 1000 10
2 Task 2 2000 20
3 Task 3 3000 30
4 Task 4 4000 40
5 Task 5 5000 50
6 Task 6 6000 60
7 Task 7 7000 70

We then map these codes to several milestones in order to build up an idea
of how much effort and spend is needed to achieve these milestones (such as
in the table below).

Mapped task codes Deliverable Cost (GBP) Hours
1,2,7 Deliverable 1 10000 100
3,4 Deliverable 2 7000 70
5 Deliverable 3 5000 50
6 Deliverable 4 6000 60

What I want to know is how to create a formula to go in the Cost and Hours
column of the second table that will automatically calculate the Hours and
Cost based upon the numbers entered in the first column of the second table
(e.g. calculate the 10000 based upon 1,2,7 being entered in the first column)
- anyone got any ideas?


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
Excel puts quotes around cells with commas in tab delimited files Martyw Setting up and Configuration of Excel 0 May 21st 08 11:36 PM
Count Commas in Cells Dax Arroway Excel Discussion (Misc queries) 5 January 30th 07 08:22 PM
commas in cells DEE Excel Discussion (Misc queries) 9 December 22nd 06 08:15 AM
commas in cells BorisS Excel Discussion (Misc queries) 5 August 24th 05 10:02 PM
importing list with commas from WORD, to individual .xls cells? brantty Excel Discussion (Misc queries) 1 August 5th 05 12:31 AM


All times are GMT +1. The time now is 08:08 AM.

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"