Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Dynamic range generator

Hi,

I would like to output a pretty simple equation with a couple of characters
in the middle of the answer. So far this wrecks it and i'm guessing the
characters are really performing a function (but i want them not to).

I'd like to output the following to a cell (RTDMA)*32&&-(RTDMA)*32+31 where
RTDMA is a value i enter into a cell elsewhere, which is multiplied by 32
(the product of this is the start of my range) and the same applies to the
2nd RTDMA calc, only it's +31. The ampersands need to denote this is a range.

E.G. RTDMA=1 so using the above and calculating manually i'd have 32&&-63
from and RTDMA of 1.
Hope you follow me and can help.

Rob
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 896
Default Dynamic range generator

=D21*32&"&&-"&D21*32+31

presuming RTDMA is in D21

you might also give D21 a name of "RTDMA"

and then use the formula:

=RTDMA*32&"&&-"&RTDMA*32+31

HIH
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Dynamic range generator

Sub beeb()
Dim s As String, rtdma As Integer
rtdma = 1
s = rtdma * 32 & "@@-" & rtdma * 32 + 31
Cells(1, 1).Value = s
End Sub

--
Gary''s Student - gsnu200797
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
dynamic range based on criteria, within a dynamic range, passed to a function [email protected] Excel Programming 5 October 9th 07 10:13 PM
creating a dynamic range based on criteria, within a dynamic range, and passing it to a function [email protected] Excel Programming 0 October 9th 07 05:22 PM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
copying dynamic range based on cell outside of range xcelelder Excel Programming 3 September 29th 05 05:08 PM
select dynamic range with dynamic start point Juli Excel Programming 1 August 31st 05 12:05 AM


All times are GMT +1. The time now is 12:18 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"