+ Reply to Thread
Results 1 to 3 of 3

Trying to put cell range reference in formula

  1. #1
    Registered User
    Join Date
    05-15-2012
    Location
    Saskatoon, SK
    MS-Off Ver
    Excel 2010
    Posts
    6

    Trying to put cell range reference in formula

    I've created the attached spreadsheet in order to make a custom cheque stub with the data provided from my accounting software. I have everything working exactly as I want except for one thing.
    This formula =IF('CHK row'!J1="""","",INDEX($A$2:$AB$60,1,1)) works great. However, I want the "$A$2:$AB$60" to change for the next cheque so that it is $A$37:$AB$95 and the next cheque to be $A$75:$AB$133 (see CHK row tab column K data). The problem is that when I try to change =IF('CHK row'!J1="""","",INDEX($A$2:$AB$60,1,1)) to =IF('CHK row'!J1="""","",INDEX(K1,1,1)), the formula doesn't work because K1 ($A$2:$AB$60) is a string of text I think. I want to be able to have the formula =IF('CHK row'!J1="""","",INDEX($A$2:$AB$60,1,1)) automatically change for each check's data.
    Please help by letting me know another way to insert a changing cell range inside a formula that will actually work for me.
    Attached Files Attached Files

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Trying to put cell range reference in formula

    This makes no sense to me,

    INDEX($A$2:$AB$60,1,1)

    it is the same as just using $A$1. However, I would combine your logic for finding the row into the formula

    =IF(ISERROR(SMALL(IF(Info!$A$1:$A$1000=$B$1,ROW(Info!$A$1:$A$1000)),ROW(A1)))="","",INDEX(A:A,SMALL(IF(Info!$A$1:$A$1000=$B$1,ROW(Info!$A$1:$A$1000)),ROW(A1))))

  3. #3
    Forum Contributor
    Join Date
    08-29-2011
    Location
    Atlanta
    MS-Off Ver
    Excel 2007
    Posts
    171

    Re: Trying to put cell range reference in formula

    Have you tried including the INDIRECT or OFFSET formulas? If not, I will try to get you a solution with one of them.

+ 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