+ Reply to Thread
Results 1 to 5 of 5

reference a position in a range

  1. #1
    Registered User
    Join Date
    01-13-2004
    Posts
    42

    reference a position in a range

    Hello, I posted this earlier but with insufficient description title. I tried editing/deleting the other post but looks like the option is disabled.

    I have data in a worksheet tab in excel by month e.g.

    January:
    Interest
    Dividend
    Expense

    February
    Interest
    Dividend
    Expense

    I want to name each area say A5:A15=January, A20:A30 = February

    In another worksheet, I want to refer to the 4th cell in my range, or add 3 cells together in my range say 5th, 6th & 7th cells. Is it possible to do that? what would the formula be?
    I tried January1 and it gave me a Name? error.

    Thanks for your help!

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: reference a position in a range

    refer to the 4th cell in my range
    Does the range include the cell that says "January"? If so

    =offset(January,4,0,1,1)

    or add 3 cells together in my range say 5th, 6th & 7th cells
    =sum(offset(january,5,0,3,1))

  3. #3
    Registered User
    Join Date
    01-13-2004
    Posts
    42

    Re: reference a position in a range

    Thanks Teylyn,
    I am getting a name? error when I use that formua. Is it because the worksheet I am trying to reference is not in the workbook that has the formula. What I did was I had my equal sign and then clicked on the worksheet with the range and when I type in "january" it does light up in blue so what could be wrong?
    I also tried the help to understand how the Offset formula works, but can't say I totally understand it.
    My other question is: what if I want to add cells 2, 4, 5, 7, how would this change my offset, I can guess the formula may look like this:
    sum(offset(january,2,0,X,1) not entirely sure.

    Thanks again!
    Last edited by opeyemi1; 02-02-2010 at 08:08 PM.

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: reference a position in a range

    So you want to reference a range name in a different file altogether and then use just individual cells in that larger range for calculations?

    Although the Offset formula can be used for that, it's probably not the best option, since it is volatile and you don't want too many Offset formulae in your file.

    Can you just post a few bits of sample data and explain what you are actually trying to achieve? Maybe there's a better way if we take a few steps back and start over.

    cheers

  5. #5
    Registered User
    Join Date
    01-13-2004
    Posts
    42

    Re: reference a position in a range

    Thanks,
    I can move the spreadsheet into my current workbook, so as not to complicate things.

    But is it possible to add up different cells even if they are not continuous like cell 2, 4, 5 & 7?

    Thanks once again!

+ 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