From: Pontus on
Hi,

I want to have a formula that retrievs the index from the cell to the right
of the cell with the formula.

I know that the formula below gives the index of the cell you are in but
that doesn't help me much unfortunately. Is there a simplier way or maybe a
way that utilises this code?

=SUBSTITUTE(SUBSTITUTE(CELL("address");"$";"");ROW();"")

Best Regards
Pontus
From: JMay on
Do you mean:
A1 =Offset($B1,0,1)
B1 = Sum(A2:A4)
C1 = whatever

"Pontus" wrote:

> Hi,
>
> I want to have a formula that retrievs the index from the cell to the right
> of the cell with the formula.
>
> I know that the formula below gives the index of the cell you are in but
> that doesn't help me much unfortunately. Is there a simplier way or maybe a
> way that utilises this code?
>
> =SUBSTITUTE(SUBSTITUTE(CELL("address");"$";"");ROW();"")
>
> Best Regards
> Pontus
From: Pontus on
Hmm, I'll try to explain better.

What I want to do is to have a formula that I can copy in to any cell which
will give the cell index of the cell to the right.

Exampel:
If I copy my formula in to cell K23 I want the answer to be L23 or
If I copy my formula in to cell B23 I want the answer to be C23 etc.

Hope I made myself more clear now =)

Thanks for answering.
Pontus

"JMay" wrote:

> Do you mean:
> A1 =Offset($B1,0,1)
> B1 = Sum(A2:A4)
> C1 = whatever
>
> "Pontus" wrote:
>
> > Hi,
> >
> > I want to have a formula that retrievs the index from the cell to the right
> > of the cell with the formula.
> >
> > I know that the formula below gives the index of the cell you are in but
> > that doesn't help me much unfortunately. Is there a simplier way or maybe a
> > way that utilises this code?
> >
> > =SUBSTITUTE(SUBSTITUTE(CELL("address");"$";"");ROW();"")
> >
> > Best Regards
> > Pontus
From: Ragdyer on
Would you care to elaborate on what you intend to do with that address of
the cell on the right?

The reason I'm asking, is because you can use a "relative" named formula
that can return the *contents* of that cell to the right of which ever cell
you enter it into.

Would that be of interest to you?
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"Pontus" <Pontus(a)discussions.microsoft.com> wrote in message
news:7DC46E30-CC1E-4339-B79C-C19BE87CD39C(a)microsoft.com...
> Hmm, I'll try to explain better.
>
> What I want to do is to have a formula that I can copy in to any cell
which
> will give the cell index of the cell to the right.
>
> Exampel:
> If I copy my formula in to cell K23 I want the answer to be L23 or
> If I copy my formula in to cell B23 I want the answer to be C23 etc.
>
> Hope I made myself more clear now =)
>
> Thanks for answering.
> Pontus
>
> "JMay" wrote:
>
> > Do you mean:
> > A1 =Offset($B1,0,1)
> > B1 = Sum(A2:A4)
> > C1 = whatever
> >
> > "Pontus" wrote:
> >
> > > Hi,
> > >
> > > I want to have a formula that retrievs the index from the cell to the
right
> > > of the cell with the formula.
> > >
> > > I know that the formula below gives the index of the cell you are in
but
> > > that doesn't help me much unfortunately. Is there a simplier way or
maybe a
> > > way that utilises this code?
> > >
> > > =SUBSTITUTE(SUBSTITUTE(CELL("address");"$";"");ROW();"")
> > >
> > > Best Regards
> > > Pontus

From: b&s on
"Pontus" <Pontus(a)discussions.microsoft.com> wrote in message
news:7DC46E30-CC1E-4339-B79C-C19BE87CD39C(a)microsoft.com
> Hmm, I'll try to explain better.
>
> What I want to do is to have a formula that I can copy in to any cell
> which will give the cell index of the cell to the right.
>
> Exampel:
> If I copy my formula in to cell K23 I want the answer to be L23 or
> If I copy my formula in to cell B23 I want the answer to be C23 etc.
>
> Hope I made myself more clear now =)
>
> Thanks for answering.
> Pontus
>

.... maybe: =ADDRESS(ROW();COLUMN()+1)

--
pozdrav!
Berislav