+ Reply to Thread
Results 1 to 2 of 2

Advance Sumif Formula Help

  1. #1
    Registered User
    Join Date
    11-07-2014
    Location
    India
    MS-Off Ver
    2016
    Posts
    88

    Advance Sumif Formula Help

    Hello friends

    I am working on a file where I need to use advance vlookup or sumif. Somehow, I managed the formula to arrive the value but now when converting in to macro it is not working.

    Hereby, I am attaching the file along with code and derived macro. Please help in getting the macro or suggest me a best way to do the work. I don't mind if anyone suggest me new way (formula) to get the answer.
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Advance Sumif Formula Help

    You have a few problems in the line of code you showed. The biggest problem is that if you want to include a quote " inside a string in VBA, you have to double it "". Also the sample workbook doesn't match what you are showing the code. Also, if you include a value in SUMIFS it is assumed that you want to match to be equal to that value. You don't have to build

    "="&B2

    you can just use

    B2

    This is not an error, but it adds the complexity and makes errors harder to find, even more so when you do this in VBA.

    I will try to fix your code the best I can but it can't really be tested because it refers to an external file that is a completely different format than your sample file.

    Please Login or Register  to view this content.
    Last edited by 6StringJazzer; 06-16-2019 at 07:59 PM. Reason: removed Debug.Print artifact
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] VBA or advance formula ?
    By guanqiao in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2016, 10:50 AM
  2. Advance (long) if formula, Can it be done?
    By TRD_Purchasing in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-23-2016, 01:07 PM
  3. [SOLVED] Need Help Proofing My Formula - Thanks in advance!
    By carrothe in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-26-2014, 11:45 AM
  4. the advance of =Left formula
    By sr_88 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-12-2013, 03:38 AM
  5. Issue with Advance filter (formula)
    By amitkr3855 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-08-2013, 04:30 AM
  6. Help with an advance Formula
    By Astroboy142 in forum Excel General
    Replies: 3
    Last Post: 10-18-2009, 08:55 AM
  7. [SOLVED] Need some help with a formula...thanks in advance
    By Jambruins in forum Excel General
    Replies: 6
    Last Post: 10-17-2005, 02:05 PM

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