+ Reply to Thread
Results 1 to 3 of 3

Thread: Convert CountIfs to Office 2003

  1. #1
    Registered User
    Join Date
    07-26-2010
    Location
    NL
    MS-Off Ver
    Excel 2003
    Posts
    51

    Convert CountIfs to Office 2003

    Hello,

    I've got the following piece of vba code (thanks to Tom Hogan)

    Dim MatchRange As Range
    Dim IndexRange As Range
    Dim AspectRange As Range
    Dim ExitRange As Range
    Dim AspectValue As Variant
    
    countexit = Application.WorksheetFunction.CountIfs(AspectRange, AspectValue, ExitRange, ("*" & "Exit" & "*"))
    But this is only working with Office 2007, I've learned that SUMPRODUCT can do the same, is there anyone who can convert the countifs formula for me?

    Thanks in Advance.

    ABBOV

  2. #2
    Forum Guru, retired Admin royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    25,640

    Re: Convert CountIfs to Office 2003

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

    also, what exactly are you doing?
    Hope that helps.

    RoyUK
    --------
    If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need

    For Excel Tips & Solutions, free examples and tutorials why not check out my downloads

    New members please read & follow the Forum Rules

    Remember to mark your questions Solved and rate the answer(s)

  3. #3
    Registered User
    Join Date
    01-25-2011
    Location
    Virginia
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: Convert CountIfs to Office 2003

    Roy,
    Here is the original post http://www.excelforum.com/excel-prog...ll-values.html

    which includes the dummy worksheet. My solution works but I'm sure there is a better way to meet his requirement.

    Thanks,

    Tom
    Last edited by tom.hogan; 03-18-2011 at 09:16 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.2.0