RETRIEVING INFO FROM MOVING CELLS

ottasight

New Member
Joined
Feb 15, 2009
Messages
46
Hi, i'm trying to retrieve info from a cell that is related to a position of a different cell.
abcdefghi
112345678
2
3s
41
when S is in A3, A4 contains 1. if i move S to E3, A1 still returns B1 instead of "5" from F1
formula for A4 is, if(a3="s",b1,""). if i move the s to E3 the formula automatically adjusts to, if(e3="s",b1,""). even though A3 went to E3, B1 did not go to F1.
Need help in retrieving f1 in cell A4, when the "S" moves to any different cell. thanks
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Hi,

Not entirely sure what your requirements are, your description is not clear for me...

May be this:

Book3.xlsx
ABCDEFGHIJ
1abcdefghi
212345678
3
4s
55
Sheet784
Cell Formulas
RangeFormula
A5A5=IFERROR(LOOKUP("zzz",A4:I4,B2:J2),"")
 
Last edited:
Upvote 0
Too late to edit.

Removed the erroneous header row to show correct cell/range references:

Book3.xlsx
ABCDEFGHIJ
112345678
2
3s
45
Sheet784
Cell Formulas
RangeFormula
A4A4=IFERROR(LOOKUP("zzz",A3:I3,B1:J1),"")
 
Upvote 0
I suggest that you update your Account details (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Perhaps you might have other data in row 3 too? If so, one of these (depending on your version) might be appropriate.

21 02 21.xlsm
ABCDEFGHI
112345678
2
3hsa
44
54
s
Cell Formulas
RangeFormula
A4A4=XLOOKUP("s",A3:H3,B1:I1)
A5A5=INDEX(B1:I1,MATCH("s",A3:H3,0))
 
Upvote 0
And if OP's row 1 is strictly numbers, and row 3 value is not repeated, we may be able to use just SUMIF, but really need clarification from OP:

Book3.xlsx
ABCDEFGHIJ
112345678
2
3hsa
46
54
Sheet784
Cell Formulas
RangeFormula
A4A4=IFERROR(LOOKUP("zzz",A3:I3,B1:J1),"")
A5A5=SUMIF(A3:I3,"s",B1:J1)
 
Upvote 0

Forum statistics

Threads
1,215,692
Messages
6,126,230
Members
449,303
Latest member
grantrob

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