Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 83
Default Reference value plus 7

Hi Folks,

I have a sheet which takes values from a second sheet on a weekly basis.
Sheet 1 has a cell with a reference to a particular cell in sheet 2. for
example

sheet1
A5 = sheet2 b7
D5 = sheet2 b14

is there a ay I can simply reference the reference foumula and add 7 or do i
have to hardcode each reference?

Hpoe this makes sense.

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 176
Default Reference value plus 7

This may be what you want.
A UDF (User Defined Function).

Put this in Module1:
Public Function Func1(rng1 As Range)
Func1 = Range(rng1.Formula).Offset(7, 0).Value
End Function ' Dave D-C

and this in D5:
=Func1(A5)

Stephen wrote:
Hi Folks,

I have a sheet which takes values from a second sheet on a weekly basis.
Sheet 1 has a cell with a reference to a particular cell in sheet 2. for
example

sheet1
A5 = sheet2 b7
D5 = sheet2 b14

is there a ay I can simply reference the reference foumula and add 7 or do i
have to hardcode each reference?

Hpoe this makes sense.

Thanks!


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
Nesting a sheet name reference within a cell reference??? Broyston Excel Discussion (Misc queries) 9 July 8th 08 08:35 PM
Changing sheet reference to cell reference TeeJay Excel Worksheet Functions 3 October 19th 07 11:50 AM
Using an offset formula for the reference in a relative reference Cuda Excel Worksheet Functions 6 November 15th 06 05:12 PM
Formulas that reference cells that reference another cell Andrea Excel Discussion (Misc queries) 7 October 19th 06 08:14 AM
Row reference increment but preserve column reference Pwanda Excel Worksheet Functions 1 April 28th 05 01:12 PM


All times are GMT +1. The time now is 10:26 AM.

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

About Us

"It's about Microsoft Excel"