Results 1 to 8 of 8

Need a macro instead of SUMIF & COUNTIFS formula

Threaded View

  1. #1
    Registered User
    Join Date
    05-28-2012
    Location
    Tehran, Iran
    MS-Off Ver
    Excel 2007 , 2010
    Posts
    4

    Need a macro instead of SUMIF & COUNTIFS formula

    Hi
    I have 400 csv file that they are output of a program and now I need calculate something on them
    first of all I find a code to import all of my csv to an excel file
    then by using SUMIF and COUNTIF I calculate my needs But I Need to know if there are better way

    I Used Something like this
    =IF(J2=$E$2,COUNTIFS($A$3:$A$38,$A$43,E3:E38,"c")/(COUNTIFS($A$3:$A$38,$A$43,E3:E38,"c")+COUNTIFS($A$3:$A$38,$A$43,E3:E38,"w")))
    and
    =IF(F2=$F$2,SUMIF($A$3:$A$38,$A$44,F3:F38))
    ExcelForum.xlsx
    and as you see in the attached file the output is not suitable for bigger file
    is there any better solution ?

    thank you in advanced
    Keyvan,
    Last edited by Keyvan; 07-29-2013 at 07:47 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Formula needed for countif or countifs (may also need a sumif)
    By Petefav in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-25-2013, 02:18 AM
  2. Sumif, sumifs, counta, countifs??
    By 1.zer0 in forum Excel General
    Replies: 3
    Last Post: 01-14-2012, 06:18 AM
  3. Macro to add range & criteria in COUNTIFS Formula
    By wspettus in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-28-2011, 03:34 AM
  4. Replies: 0
    Last Post: 12-16-2011, 09:01 AM
  5. converting COUNTIFS formula to macro
    By batjl9 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-14-2011, 03:37 AM

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