Formiua help

Wilcock1

New Member
Joined
Dec 11, 2014
Messages
29
Hi,

Please would you be able to help with a formula.

I am trying to bring back the correct result as follows.

1 2 3 4 5 6 7 8 9 10 11 12
Consultancy 10000 10000 5000 6000 4000 5000 1000 2000 3000 2000 3000 5000
Travel 5000 1000 1000 2000 1000 3000 1000 1000 2000 1000 2000 3000
Training 1000 1000 500 1000 500 1000 500 1000 500 500 1000 500

Another table has my criteria of

Consultancy
Travel
Training


Cell A is 12

In the Consultancy cell in the second table I would like to bring back a sum of the columns that are equal to and less than Cell A.

If Cell A is 12 then the result is the sum of 1 to 12 = 56000
If Cell A is 1 then the result is the sum of 1 = 10000
If Cell A is 3 then the result is the sum of 1 to 3 = 25000

Many thanks in advance

Andrew
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Hi, something like this maybe..


Excel 2013/2016
ABCDEFGHIJKLM
1123456789101112
2Consultancy10000100005000600040005000100020003000200030005000
3Travel500010001000200010003000100010002000100020003000
4Training100010005001000500100050010005005001000500
5
6
73
8Consultancy25000
Sheet1
Cell Formulas
RangeFormula
B8=SUMIFS(INDEX($B$2:$M$4,MATCH(A8,$A$2:$A$4,0),0),$B$1:$M$1,"<="&$B$7)
 
Upvote 0
something like this?


Book1
ABCDEFGHIJKLM
1Consultancy10000100005000600040005000100020003000200030005000
2Travel500010001000200010003000100010002000100020003000
3Training100010005001000500100050010005005001000500
4
5
6
7Consultancy1256000
8Travel815000
9Training43500
10
Sheet2
Cell Formulas
RangeFormula
C7=SUM(OFFSET(A1,0,1,1,B7))
 
Upvote 0
Hi, something like this maybe..

Excel 2013/2016
ABCDEFGHIJKLM
1123456789101112
2Consultancy10000100005000600040005000100020003000200030005000
3Travel500010001000200010003000100010002000100020003000
4Training100010005001000500100050010005005001000500
5
6
73
8Consultancy25000

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
B8=SUMIFS(INDEX($B$2:$M$4,MATCH(A8,$A$2:$A$4,0),0),$B$1:$M$1,"<="&$B$7)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

Hi Thanks so much for your response, that's really helpful! Andrew
 
Upvote 0

Forum statistics

Threads
1,214,516
Messages
6,119,976
Members
448,934
Latest member
audette89

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top