KansaiDorifto
New Member
- Joined
- Nov 16, 2021
- Messages
- 9
- Office Version
- 2010
- Platform
- Windows
Hello
I have a number (e.g. $5,000) which I want to look up in a table, then I want to add it and the next two numbers next to it.
I have tried:
1) Using INDEX/MATCH to get the number
+INDEX($M$3:$AK$21, MATCH($M45, $M$3:$M$21, 0), MATCH(N$43, $M$3:$AK$3, 0)) -> which results in a number $5000
2) Using CELL/ADDRESS to get the cell location of that result
=CELL("address", INDEX($M$3:$AK$21, MATCH($M45, $M$3:$M$21, 0), MATCH(N$43, $M$3:$AK$3, 0)) ) -> which results in $N$8
3) But when I include it in a SUM/OFFSET formula, it generates an error:
+SUM(OFFSET(CELL("address", INDEX($M$3:$AK$21, MATCH($M45, $M$3:$M$21, 0), MATCH(N$43, $M$3:$AK$3, 0)) ), 0, 0, 1, 3)) -> error
I don't understand why it's causing an error, because it works when I manually type in $N$8:
+SUM(OFFSET($N$8, 0, 0, 1, 3))
and my step 2 should be returning exactly $N$8?
Appreciate any help on solving this, or a better formula to get this done.
Thanks!
I have a number (e.g. $5,000) which I want to look up in a table, then I want to add it and the next two numbers next to it.
I have tried:
1) Using INDEX/MATCH to get the number
+INDEX($M$3:$AK$21, MATCH($M45, $M$3:$M$21, 0), MATCH(N$43, $M$3:$AK$3, 0)) -> which results in a number $5000
2) Using CELL/ADDRESS to get the cell location of that result
=CELL("address", INDEX($M$3:$AK$21, MATCH($M45, $M$3:$M$21, 0), MATCH(N$43, $M$3:$AK$3, 0)) ) -> which results in $N$8
3) But when I include it in a SUM/OFFSET formula, it generates an error:
+SUM(OFFSET(CELL("address", INDEX($M$3:$AK$21, MATCH($M45, $M$3:$M$21, 0), MATCH(N$43, $M$3:$AK$3, 0)) ), 0, 0, 1, 3)) -> error
I don't understand why it's causing an error, because it works when I manually type in $N$8:
+SUM(OFFSET($N$8, 0, 0, 1, 3))
and my step 2 should be returning exactly $N$8?
Appreciate any help on solving this, or a better formula to get this done.
Thanks!