Hello,
I've got the following piece of vba code (thanks to Tom Hogan)
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?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" & "*"))
Thanks in Advance.
ABBOV
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)
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks