+ Reply to Thread
Results 1 to 4 of 4

Sumproduct vba code

  1. #1
    Registered User
    Join Date
    02-08-2023
    Location
    Jakarta, Indonesia
    MS-Off Ver
    365
    Posts
    8

    Red face Sumproduct vba code

    hai, can everyone help me to change this formula to vba code :
    Excel Formula:
    =SUMPRODUCT(($E$2:$E$63184=E2)*(U2>$U$2:$U$63184); ($F$2:$F$63184=F2)*([U2>$U$2:$U$63184))+1

    it's been a week since I tried to find the right code for this formula in vba, but still the result is always error

    Crossposted here: https://www.mrexcel.com/board/thread...oduct.1233849/
    Last edited by Glenn Kennedy; 03-30-2023 at 07:25 AM.

  2. #2
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2402-17328.20068
    Posts
    1,359

    Re: Sumproduct vba code

    Have you tried EVALUATE, something like the below?
    Please Login or Register  to view this content.
    If things don't change they stay the same

  3. #3
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2402-17328.20068
    Posts
    1,359

    Re: Sumproduct vba code

    Looks like you have a character in the formula that should not be there:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Sumproduct vba code

    Welcome (back) to the forum.

    Thanks for your question. However, we have just found out that you have posted the same question elsewhere.... and haven't told us. Feel free to cross-post on other sites...

    But. Every forum has its rules. Please see Forum Rule #3 about cross-posting. So.

    Do not keep it a secret. We all are willing to give you our time, freely. However, some of us get very annoyed if we waste our time developing a solution for you, when you already have a nice solution elsewhere. All we ask is that you show us some respect and tell us:

    1) if you have cross-posted, and

    2) the URL of the cross posts.

    That way, those of us who don't want to waste their time can quickly check to see if you're already happy with another solution.


    However, since you are either a new member or a very infrequent user, on this occasion, I have done it for you. Is it cross-posted anywhere else?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

+ 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. sumproduct/countif as VBA code
    By dancing-shadow in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-02-2016, 09:06 AM
  2. Code expression for SUMPRODUCT
    By larrysdime in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-04-2015, 10:19 AM
  3. Code that is similar to SUMPRODUCT
    By juan.doe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-23-2014, 11:25 PM
  4. [SOLVED] Sumproduct source vba code
    By Leon V (AW) in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-31-2013, 06:31 AM
  5. Sumproduct formula:Empl Code Payroll Code Amount
    By bluemeg in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-30-2009, 02:08 PM
  6. [SOLVED] sumproduct in code
    By papa jonah in forum Excel General
    Replies: 2
    Last Post: 03-16-2005, 03:06 PM
  7. sumproduct in code
    By Papa Jonah in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-12-2005, 11:06 AM

Tags for this Thread

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