Formula to return the Row of a cell that is referenced by a cell that you must go through.

ZMBER

New Member
Joined
May 16, 2011
Messages
4
How do I write a formula to return the row# of a cell that is referenced by another cell and I must go through that other cell to learn what cell it is referencing.

In other words:

IF:
"Other"!B3=4
then
A1="other"!B3=4

I want to use cell C1 to Find Row("other"!B3) or to show "3", but C1 needs to adapt to changes in A1.

Therefore you rely on A1 to know that you need to return Row("other"!B3) in C1.

This is because in the future A1 could equal "other"!B4 and in that case C1 needs to return Row("other"!B4), or "4", and not Row("other"!B3) or "3".

thank you for your help
 

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 ZMBER,

Welcome to the MrExcel forum!!

Assuming the row number is housed in cell A1, try this:

=INDIRECT("Other!B" & A1)

HTH

Robert
 
Upvote 0
Hi ZMBER,

Welcome to the MrExcel forum!!

Assuming the row number is housed in cell A1, try this:

=INDIRECT("Other!B" & A1)

HTH

Robert

Sorry should have made this a little more clear, A1 does hold the row number, but rather houses the cell that I wish to find the row number of.
 
Upvote 0
I created a solution using some helper column:

I first needed two module:

Function MyEval(s)
MyEval = Evaluate(s)
End Function

Function CellFormula(c)
CellFormula = c.Formula
End Function
Solution:

Source: Mr. Excel forums

Then I used

=cellformula()

to create a helper column in C1 that would give me the underlying Equation of A1 and then dragged this down

Then In D1 or another column I used

=myeval("=Row("&"=Right(C1,13)"&")")

thank you guys for all your help. I am sure I am not the only one that needs so I hope someone else finds this helpful
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,286
Members
452,902
Latest member
Knuddeluff

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