LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Arlen
 
Posts: n/a
Default Can I use a formula in place of OffsetRows?

While writng a macro, it occurred to me that I don't know the syntax for
inserting a formula rather than a hard value for .Offset(ROWS,COLUMNS)

Here is the gist of my line:

Instead of Offset(4, -1), say...

I would like to Offset ROWS by looking at the current month (in A1),
timesing that by 25, then subtracting (29 minus the row that the active data
entry cell is in.)

I've tried a bunch of stuff, but it takes nothing...

..Offset(MONTH(A1)*25-(29-Row(ActiveCell)),-1).Address & ","

is its latest incarnation.

Does anybody know how this can be done?

Thanks for your continued support.

Arlen
 
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
What takes the place of a space in a formula? greenrocksandsodoesschoolandmylife Excel Discussion (Misc queries) 3 February 3rd 05 07:00 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
Is there a formula that will place the sheet name in a cell? Reed Excel Worksheet Functions 7 January 20th 05 01:29 AM
Req Formula to place 1 into next columns stge Excel Worksheet Functions 0 November 9th 04 09:26 AM
Req Formula to place 1 into next columns stge Excel Worksheet Functions 1 November 8th 04 02:59 PM


All times are GMT +1. The time now is 03:32 PM.

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"