Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
=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
![]() |
|||
|
|||
![]()
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 |
#4
![]() |
|||
|
|||
![]()
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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Display answer only in another cell of one containing a formula | Excel Discussion (Misc queries) | |||
inserting data from a row to a cell, when the row number is specified by a formula in a cell | New Users to Excel | |||
Cell contents vs. Formula contents | Excel Discussion (Misc queries) | |||
Cell doesn't show formula result - it shows formula (CTRL + ' doe. | Excel Worksheet Functions | |||
can i colour a cell on basis of results of a formula e.g clour bl. | Excel Worksheet Functions |