+ Reply to Thread
Results 1 to 4 of 4

Call on a Cell According to Another Cell?

  1. #1
    Registered User
    Join Date
    06-24-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Call on a Cell According to Another Cell?

    Essentially I have a simple formula like =COUNTIF(C11:C15,"*whatever*")

    Rather than use the numbers 11 and 15, I would like those numbers to be determined by two different cells (say cells A1 and A2) so that I can change the range on the fly.

    How do I do this? Please let me know if this isn't clear.

  2. #2
    Forum Contributor day92's Avatar
    Join Date
    04-20-2010
    Location
    Los Angeles
    MS-Off Ver
    Excel 360
    Posts
    600

    Re: Call on a Cell According to Another Cell?

    You can just make the range A1:A2 right? I must be missing something here?

  3. #3
    Registered User
    Join Date
    06-24-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Call on a Cell According to Another Cell?

    No that is not what I mean.

    So I'm doing =COUNTIF(C11:C15,"*whatever*").

    Ideally, what I want is =COUNTIF(C(A1):C(A2),"*whatever*") but that is not the syntax excel uses.

    If I make A1=11 and A2=15 then I have the same thing as above. But I want to be able to change those values on the fly. Make sense? I'm sure there is a simple way to do it, but I don't know what the proper syntax is.

  4. #4
    Registered User
    Join Date
    06-28-2010
    Location
    hyderabad
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Call on a Cell According to Another Cell?

    =COUNTIF(indirect("C"&A1&":"&"C"&A2),"*whatever*")

+ 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