+ Reply to Thread
Results 1 to 7 of 7

Address function referencing a range

  1. #1
    Registered User
    Join Date
    04-21-2017
    Location
    Sunshine Coast, Australia
    MS-Off Ver
    2013
    Posts
    39

    Address function referencing a range

    Hey guys,

    So i have a range in one cell in the style R1C1, and i want to reference that one cell and sum or apply that range to any formular using indirect address, but i can't get it to work.

    the address formula is =ADDRESS(8,O4,1,1)&":"&ADDRESS($M$1,O4,1,1) and the result returns $O$8:$O$161. This is the range i now want to use.

    I've been trying to reference it by doing this in my wanted formula (whether its sum, or counta, or a range for other formulas) =(INDIRECT(ADDRESS(6,15,1,1),TRUE)) - but it doesn't work! (even tho it returns the string $O$8:$O$161)

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Address function referencing a range

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Registered User
    Join Date
    04-21-2017
    Location
    Sunshine Coast, Australia
    MS-Off Ver
    2013
    Posts
    39

    Re: Address function referencing a range

    Attached exmaple,
    Attached Files Attached Files

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Address function referencing a range

    mAY BE TRY

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-21-2017
    Location
    Sunshine Coast, Australia
    MS-Off Ver
    2013
    Posts
    39

    Re: Address function referencing a range

    The problem is that there may be more or less than 26 rows. there could 500 or 1,

    However i figured a way around it. see attachement
    Attached Files Attached Files

  6. #6
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Address function referencing a range

    If you are looking for dynamic range you can try offset too.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    04-21-2017
    Location
    Sunshine Coast, Australia
    MS-Off Ver
    2013
    Posts
    39

    Re: Address function referencing a range

    What i'm really trying to do is place the range into a formula to remove blanks. in the formula there is two ranges M$9:M$806, Q$9:Q$806. The first is the column to remove blanks, and the second is the column to paste the result. I need this dynamic, I still get issues however

    =IF(ROW()-ROW(Q$9:Q$806)+1>ROWS(M$9:M$806)-COUNTBLANK(M$9:M$806),"",INDIRECT(ADDRESS(SMALL((IF(M$9:M$806<>"",ROW(M$9:M$806),ROW()+ROWS(M$9:M$806))),ROW()-ROW(Q$9:Q$806)+1),COLUMN(M$9:M$806),4)))

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Referencing Value from other workbook range for VLOOKUP function
    By chergian in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-25-2017, 11:13 PM
  2. Dynamic Lookup function referencing other cells for address
    By jmmac in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-07-2016, 04:47 PM
  3. Using the result of ADDRESS() function as a range for VBA function
    By Szczesiu in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-11-2016, 07:52 AM
  4. [SOLVED] Using Address Function to create an address referencing the entire column
    By OliverS in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-28-2015, 01:06 AM
  5. Address function to create range
    By jram in forum Excel General
    Replies: 1
    Last Post: 05-14-2015, 07:54 AM
  6. Using address function to define a range
    By mc36155 in forum Excel General
    Replies: 9
    Last Post: 11-09-2010, 04:38 PM
  7. use address function to indicate range in calculation
    By Mayo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-06-2006, 02:45 PM

Tags for this Thread

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