LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Function, User Defined

Bill,

I found this post somewhat confusing. Can I seek clarification?

At one point you say all sheets, then you mention the sheet specified by A3.
A3 is a cell id, so what exactly do you mean?

I also got confused by the column labels for B4 and B1:B30. What exactly do
you mean by all of this?

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Bill Oertell" wrote in message
...
I've tried creating a user defined function that can look at all the

sheets in a
workbook and find the number of occurrences of a particular string

specified in
the function. The function, which would be used in a tally sheet, would

look
something like this:

CountItems(B4, A3, "B1:B30","xyz")

B4 is the column label to match. That is, if the column label is "ABC", I

want
the function to find the number of occurrences of my string "xyz" in the

sheet
specified by A3.

B1:B30 is the range of column labels on each sheet to look at for the

string
that matches B4.

"xyz" is the string I'm looking for.

Any help would be greatly appreciated.

I'd post what code I've tried, but I'm afraid of embarrassing myself.

I've
tried using .Find to find the column and then COUNTIF to find the string,

but
everything I've tried returns #VALUE.

Thanks.




 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
User Defined Function Help Michael Dobony Excel Worksheet Functions 4 May 26th 11 12:07 AM
user defined function delmac Excel Worksheet Functions 1 August 11th 06 04:31 PM
USer Defined Function Excel Dummy[_2_] Excel Programming 2 November 5th 03 11:33 AM
Help within user defined function P. Dileepan Excel Programming 1 October 2nd 03 11:35 PM
User-Defined Function pre-empting Built-in Function? How to undo???? MarWun Excel Programming 1 August 6th 03 09:31 PM


All times are GMT +1. The time now is 02:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"