#1
|
|||
|
|||
Need help with a formula
Hello, need help with this formula.
Want to change the numbers in boxes B12 (2) and D12 (3) to sum the columns from M7 (2) to O7 (3) Then the sum will be 8431. When I then change the digits in the boxes, the summary will change. Have tested several options but not good enough. Have any desire to help me, see attached file Anders |
#2
|
|||
|
|||
Code:
=sum(offset($l$3,4,$b$12-1,1,$d$12)) |
#3
|
|||
|
|||
Sorry, I can't get this formula working. It looks it get static
I need to change the numbers 2 and 3 and get new figures Best regards Anders |
#4
|
||||
|
||||
Try:
=SUM(INDEX($L$7:$Q$7,B12):INDEX($L$7:$Q$7,D12)) |
#5
|
|||
|
|||
For me it works!
|
#6
|
|||
|
|||
Big thanks now it works
|
#7
|
||||
|
||||
Be aware that OFFSET is a volatile function.
The solution on post #4 is not
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#8
|
|||
|
|||
Arvi's formula works fine.
If it was returning a static result, then your Calculation mode must have been set to manual. Yes, that is a volatile function, however the non-volatile Index formula will return the wrong result unless you add 1 to the value in your box D12 Code:
=SUM(INDEX(L7:Q7,B12):INDEX(L7:Q7,D12+1)) |
#9
|
||||
|
||||
It's a matter of what the OP really meant by "M7 (2) to O7 (3)". Is that O7 reference correct? The 3 coincides with column N. My assumption, I guess what the OP really meant to add from M7(2) to N7(3).
|
#10
|
|||
|
|||
Quote:
Quote:
Btw, the formula using OFFSET allows to use 4 parameters to select the sum range. OP can determine the row from where summarizing begins (currently fixed at 4), and the number of rows to summarize (currently fixed at 1). |
#11
|
||||
|
||||
Also, INDEX():INDEX() is still semi-volatile. It will recalculate when the workbook is opened.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Formula Copy Row 2 Row But Next Column In Formula From Another Tab | TimG | Excel | 3 | 04-16-2018 09:20 PM |
Possible to use an existing vlookup formula to also insert correct info and trigger a SUM formula | innkeeper9 | Excel | 2 | 09-13-2016 08:59 PM |
Need help with dragging a formula and changing a reference column as I drag the formula. | LupeB | Excel | 1 | 10-22-2015 03:02 PM |
help with a formula | srockwell25 | Excel | 4 | 08-22-2014 02:47 AM |
Help with formula please. | AndrewSE | Excel | 3 | 04-05-2011 08:50 PM |