Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Mark Mulik
 
Posts: n/a
Default How do I do math on a cell name in formula?

Howdy.

I'm trying to write a formula that would allow me to add a value to
the row number of a cell name. These attempts have been unsuccessful:

=Sheet1!D(4+B4)

So, if the contents of cell B4 were 1, then the formula would add 4+1
and thus reference the contents of cell D5 in Sheet1.

I've also tried it more simply as:

=D(4+1)

and that doesn't work either.

I've also done the math in another cell -- let's call it E7 -- such
that the contents of E7 are =4+1 and then tried this:

=D(E7)

but that didn't work either.

Can this be done?

Thanks.
Mark
  #2   Report Post  
N Harkawat
 
Posts: n/a
Default

=INDIRECT("Sheet1!"&"D"&(B4+4))

"Mark Mulik" wrote in message
om...
Howdy.

I'm trying to write a formula that would allow me to add a value to
the row number of a cell name. These attempts have been unsuccessful:

=Sheet1!D(4+B4)

So, if the contents of cell B4 were 1, then the formula would add 4+1
and thus reference the contents of cell D5 in Sheet1.

I've also tried it more simply as:

=D(4+1)

and that doesn't work either.

I've also done the math in another cell -- let's call it E7 -- such
that the contents of E7 are =4+1 and then tried this:

=D(E7)

but that didn't work either.

Can this be done?

Thanks.
Mark



  #3   Report Post  
Arvi Laanemets
 
Posts: n/a
Default

Hi

=OFFSET(Sheet1!D4,1,0)
=INDIRECT("D" & E7)
My advice is to use the first one as first option!


Arvi Laanemets


"Mark Mulik" wrote in message
om...
Howdy.

I'm trying to write a formula that would allow me to add a value to
the row number of a cell name. These attempts have been unsuccessful:

=Sheet1!D(4+B4)

So, if the contents of cell B4 were 1, then the formula would add 4+1
and thus reference the contents of cell D5 in Sheet1.

I've also tried it more simply as:

=D(4+1)

and that doesn't work either.

I've also done the math in another cell -- let's call it E7 -- such
that the contents of E7 are =4+1 and then tried this:

=D(E7)

but that didn't work either.

Can this be done?

Thanks.
Mark



  #4   Report Post  
Mark Mulik
 
Posts: n/a
Default

Howdy.

I don't really understand how the Indirect function works, but this
did the trick. Excel's help file on Indirect is not very helpful.

Many thanks for the suggestions. I tried the other two that were
posted here, but they didn't have the desired results. This one below
did what I wanted.

"N Harkawat" wrote in message ...
=INDIRECT("Sheet1!"&"D"&(B4+4))


Thanks.
Mark
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Display answer only in another cell of one containing a formula Mally Excel Discussion (Misc queries) 5 January 21st 05 01:07 PM
inserting data from a row to a cell, when the row number is specified by a formula in a cell [email protected] New Users to Excel 2 January 6th 05 07:18 AM
Cell contents vs. Formula contents Sarah Excel Discussion (Misc queries) 3 December 15th 04 06:02 PM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM
can i colour a cell on basis of results of a formula e.g clour bl. K Excel Worksheet Functions 3 November 4th 04 06:18 PM


All times are GMT +1. The time now is 02:57 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"