+ Reply to Thread
Results 1 to 4 of 4

Returning text string for column function or similar

  1. #1
    Registered User
    Join Date
    03-25-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    20

    Returning text string for column function or similar

    Hi all,

    I am working with formulas similar to this:

    =COUNTIF(L$35:INDIRECT("L"&$B$1),"Error")

    However, i want the "L" to change when I copy and past to a new colum, so that it changes in the same way that the L$35 ref does.

    One way of doing this is to put a cell reference instead of "L" - so I'd need that cell to return the text of the column it is in. (unless this can all be done more simply).

    Thanks in advance for your help

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Returning text string for column function or similar

    Hi, maybe


    =COUNTIF(L$35:INDIRECT(LEFT(ADDRESS(1,COLUMN(L1),4)&$B$1),"Error")
    Copying to right L becomes M, N...


    Regards

  3. #3
    Registered User
    Join Date
    03-25-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Returning text string for column function or similar

    Thanks very much!

  4. #4
    Registered User
    Join Date
    03-25-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Returning text string for column function or similar

    EDIT: sorry it isn't copying vertically that breaks this - it is columns after Z - ie AA, AB return "A".

    Any ideas?
    Last edited by TWDC; 04-07-2011 at 06:57 AM.

+ 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