+ Reply to Thread
Results 1 to 1 of 1

VBA: add SUMIFS formula with cell reference as criteria

  1. #1
    Registered User
    Join Date
    04-02-2011
    Location
    Espoo
    MS-Off Ver
    Excel 2007
    Posts
    16

    VBA: add SUMIFS formula with cell reference as criteria

    Hey,

    got a problem with this piece of code. I'm trying to insert SUMIFS formula to worksheet cell and I'm missing one quote marks of the last criteria. The last part of the code (underlined & bold) is not working. If I have the code like this:

    Please Login or Register  to view this content.
    Then when checking the formula from worksheet this last criteria (underlined & bold) brings the correct text string to worksheet formula but it doesn't have quote marks around the text string (like the hardcoded Text1 has). If I have the formula like this:

    Please Login or Register  to view this content.
    Then the formula won't have the correct text string as criteria but this cell reference is showing up in the worksheet formula. So how this cell reference criteria should be handled...?

    edit. Just after posting got it, needs to be like this:

    Please Login or Register  to view this content.
    Last edited by sepi; 03-25-2012 at 06:28 PM. Reason: Figured it out

+ 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