+ Reply to Thread
Results 1 to 5 of 5

=HL12-HL2 (make it so that if I enter 10 in a box it takes hl12 and finds hl2?

  1. #1
    Registered User
    Join Date
    06-29-2006
    Posts
    85

    =HL12-HL2 (make it so that if I enter 10 in a box it takes hl12 and finds hl2?

    i dont know any better way to explain it..
    right now all the formulas have a 10 spacing..(12-10=2)
    =HL12-HL2
    but I want to make it so that if I want to do it by 6 then I can just put 6 in a cell and it will automatically change the formula to
    =HL12-HL6
    a six spacing (12-6=6)
    or any other value for that matter..

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by soundengineer
    i dont know any better way to explain it..
    right now all the formulas have a 10 spacing..(12-10=2)
    =HL12-HL2
    but I want to make it so that if I want to do it by 6 then I can just put 6 in a cell and it will automatically change the formula to
    =HL12-HL6
    a six spacing (12-6=6)
    or any other value for that matter..
    Hi,

    try

    =Indirect("HL12-HL"&A1)

    with 6 etc in A1

    ---
    Si fractum non sit, noli id reficere.

  3. #3
    Registered User
    Join Date
    06-29-2006
    Posts
    85
    all I get is a #REF error

    and when I look up in the help file that would be the same as saying HL12-HL6
    but if I have 10 in there then its HL12-HL10 which is not what I need
    IF I put in 10 then it needs to be 12-10=2 for HL2
    next cell would be 13-10=3 or HL3
    Last edited by soundengineer; 04-26-2007 at 07:09 PM.

  4. #4
    Registered User
    Join Date
    06-29-2006
    Posts
    85
    Quote Originally Posted by soundengineer
    all I get is a #REF error

    and when I look up in the help file that would be the same as saying HL12-HL6
    but if I have 10 in there then its HL12-HL10 which is not what I need
    IF I put in 10 then it needs to be 12-10=2 for HL2
    next cell would be 13-10=3 or HL3

    ok...I got it to make sense and work the way I needed it
    took this

    =HL12-(INDIRECT("HL"&(ROW()-Sheet1!$B$1)))

  5. #5
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by soundengineer
    ok...I got it to make sense and work the way I needed it
    took this

    =HL12-(INDIRECT("HL"&(ROW()-Sheet1!$B$1)))
    good to see a resolution, and thanks for the feedback

    ---

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1