Change The ROW / COLUMN from a formula

JhonsonTan

New Member
Joined
Dec 4, 2015
Messages
28
C8 = "20" , K8 = "$1000" , K22 = "$2000"
if c3 = "=c8" , THEN c2 = k8 = "$1000"
if c3 = "=c22" , then c2 = k22 = "$2000"
so if i just need to change c3 value , then c2 will follow
is this possible?
i want the formula in C2 cell
thank you
 
I don't know why you would need to use INDIRECT and FORMULATEXT. What's in D3?
lol.. i also dont know why i used it, i just try to get the solution.
sorry the formula should be
=INDEX($DR4:$DR10000,MATCH(INDIRECT(RIGHT(FORMULATEXT(c3), LEN(FORMULATEXT(c3))-1)),D4:D10000,FALSE)))
c3 = "=c#"
i use formulatext to get the formula from c3 which is "=c#" , then i cut the "=" with LEN , at which i get "C#" , then i indirect it so i get the exact value.
its a bad formula, isnt it
 
Upvote 0

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
=INDEX($DR4:$DR10000,MATCH(INDIRECT(RIGHT(FORMULATEXT(c3), LEN(FORMULATEXT(c3))-1)),c4:c10000,FALSE)))
sorry this is the correct one i think
 
Upvote 0
Isn't this:

=INDEX($DR4:$DR10000,MATCH(INDIRECT(RIGHT(FORMULATEXT(C3), LEN(FORMULATEXT(C3))-1)),C4:C10000,FALSE))

the same as?

=INDEX($DR4:$DR10000,MATCH(C3,C4:C10000,FALSE))

If you want use the row number referenced by C3:

=INDEX($DR4:$DR10000,ROW(INDIRECT(SUBSTITUTE(FORMULATEXT(C3), "=","")))-ROW(DR3))
 
Upvote 0
Isn't this:

=INDEX($DR4:$DR10000,MATCH(INDIRECT(RIGHT(FORMULATEXT(C3), LEN(FORMULATEXT(C3))-1)),C4:C10000,FALSE))

the same as?

=INDEX($DR4:$DR10000,MATCH(C3,C4:C10000,FALSE))

If you want use the row number referenced by C3:

=INDEX($DR4:$DR10000,ROW(INDIRECT(SUBSTITUTE(FORMULATEXT(C3), "=","")))-ROW(DR3))
wow this is exactly what i want. is there anything u cant solve?
can u explain to me why there is -ROW(DR3)
if i use (D:D) as the reference for INDEX, should i add
-ROW(DR3) ?
 
Upvote 0
Because your indexed range reference starts at row 4 you need to deduct 3. If you start at row 1 or reference the entire column you don't need to deduct 3.
 
Upvote 0
Because your indexed range reference starts at row 4 you need to deduct 3. If you start at row 1 or reference the entire column you don't need to deduct 3.
ok i got it.. thanks
if c3 its a bit complex formula, how do i do it? using the row reference
c3 = "=LOOKUP(REPT("z",255),A:A)"
 
Upvote 0
Like this?

=INDEX(B:B,MATCH(C3,A:A,FALSE))
Whats the different between vlookup and index? which one is better?

i have this case
a1 = 1 | b1 = a1 | c1 = a2 | d1 = a5 | e1 = a6
a2 = 2 |
a5 = 3 |
a6 = 10|

i want c1 formula, that can be drag to d1,e1,f1,etc
is it possible?
 
Upvote 0

Forum statistics

Threads
1,215,104
Messages
6,123,113
Members
449,096
Latest member
provoking

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