+ Reply to Thread
Results 1 to 3 of 3

Passing cell address into ROWS formula

  1. #1
    Registered User
    Join Date
    07-17-2012
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2010
    Posts
    13

    Passing cell address into ROWS formula

    What I have
    In cell G3: =ADDRESS(2,MATCH($O$5,$A$1:$E$1,0),2)
    Result - E$2
    In cell H3: =ADDRESS(ROW(),MATCH($O$5,$A$1:$E$1,0),4)
    Result - E3

    What I want
    If I manually create the ROWS formula I would use =ROWS(E$2:E3) in cell I3 where the range is clicked on with the mouse. This would result in a row count of "2" being returned.

    How do I pass the text of cells G3 & H3 (preferably the formula within those cells) into the =ROWS() formula to give me the same row count of 2?

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Passing cell address into ROWS formula

    I3 = rows( indirect(G3) : indirect(H3) )

  3. #3
    Registered User
    Join Date
    07-17-2012
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Passing cell address into ROWS formula

    Thank you so much. I was trying =ROWS(INDIRECT(G3:H3))...don't know why it didn't occur to me to use indirect on both cells individually.

+ 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