+ Reply to Thread
Results 1 to 3 of 3

Using calculated cell references in a formula

  1. #1
    Registered User
    Join Date
    02-21-2008
    Posts
    2

    Question Using calculated cell references in a formula

    Hi all,

    I'm having a bit of trouble working out whether this is even possible, but hoping a guru here can help me out.

    Basically, I have a date based spreadsheet that records the number of letters sent out per day. For each day of the month, it goes down the page for the day generated and across the page for the day and amount sent. It is possible that if there are too many, it will be spread out over a number of days.

    So, I have calculated going across the first and last day, but I want to know how many Sundays are in the dispatch range. I have used a formula to work out the dispatch day range which returns "D7:J7", "E8:E10" for example, but now I want to use that range to count the number of Sundays.

    This is my formula to get that (and it works perfectly):

    CONCATENATE(VLOOKUP(($AS24+4),letters,2),"2",":",VLOOKUP(($AU24+4),letters,2),"2")

    So, if I was using a formula, it would be:

    COUNTIF(CONCATENATE(VLOOKUP(($AS24+4),letters,2),"2",":",VLOOKUP(($AU24+4),letters,2),"2"),"Sun")

    I've tried this one too:

    COUNTIF(CONCATENATE(VLOOKUP(($AS24+4),letters,2),"2"):CONCATENATE(VLOOKUP(($AU24+4),letters,2),"2"),"Sun")

    But, Excel doesn't seem to be liking that I am specifying the range with a formula.

    Has anybody come across a similar problem and is there any way around this?

    I am assuming I need to tell Excel these are cell references by wrapping the VLOOKUPs in something, but I'm not sure what.



    Thanks in advance!!

    g_train
    Last edited by g_train; 02-21-2008 at 09:31 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try:

    Please Login or Register  to view this content.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    02-21-2008
    Posts
    2
    Thanks NBVC - I'll have to look into the INDIRECT function as it is one I've never used, but that does exactly what I want it to. Thanks heaps!!

+ 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