stuartmacdonald
New Member
- Joined
- May 26, 2009
- Messages
- 48
I have a formula I'm trying to simplify to calculate how work is spread among project staff.
I need to calculate a value (£) based on a value in the same row (%), so if H4 = 20%, return 20% of C4, in cell N4 - simple
=SUM($H4*C4,$H5*C5,$H6*C6,$H7*C7)
<colgroup><col><col><col span="3"><col><col span="4"><col><col><col span="4"></colgroup><tbody>
</tbody>
Problem is I need to do this for a number of ranges across a number of sheets, and I cannot figure it out.
I assumed I should be using a SUMIF but I cannot get it to work... feeling a bit dim
I need a formula which looks at H4:H7 and calculates the values from C4:C7 and returns the value in N4:N7
I have attached an example here, and while this works, I cannot replicate this approach on the scale I need it.
I need to calculate a value (£) based on a value in the same row (%), so if H4 = 20%, return 20% of C4, in cell N4 - simple
=SUM($H4*C4,$H5*C5,$H6*C6,$H7*C7)
Jan | Feb | Mar | Total | Staff 1 | Staff 2 | Staff 3 | Jan | Feb | Mar | ||||||
Project 1 | £1,000 | £4,000 | £5,000 | £10,000 | 20% | 20% | 60% | 100% | Staff 1 | £10,100 | £7,200 | £7,300 | £24,600 | ||
Project 2 | £3,000 | £2,000 | £6,000 | £11,000 | 50% | 50% | 0% | 100% | Staff 2 | £1,700 | £1,800 | £4,000 | £7,500 | ||
Project 3 | £8,000 | £4,000 | £3,000 | £15,000 | 90% | 0% | 10% | 100% | Staff 3 | £4,200 | £7,000 | £4,700 | £15,900 | ||
Project 4 | £4,000 | £6,000 | £2,000 | £12,000 | 30% | 0% | 70% | 100% | £16,000 | £16,000 | £16,000 | £48,000 | |||
£16,000 | £16,000 | £16,000 | £48,000 |
<colgroup><col><col><col span="3"><col><col span="4"><col><col><col span="4"></colgroup><tbody>
</tbody>
Problem is I need to do this for a number of ranges across a number of sheets, and I cannot figure it out.
I assumed I should be using a SUMIF but I cannot get it to work... feeling a bit dim
I need a formula which looks at H4:H7 and calculates the values from C4:C7 and returns the value in N4:N7
I have attached an example here, and while this works, I cannot replicate this approach on the scale I need it.