LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Sub to write another result dimension into comments over formula c

Here's my set-up (book is set to manual calc)

In sheet: Y, in A1:B5, I have data

Area Brch
Zone1 Br10
Zone2 Br11
Zone1 Br12
Zone2 Br13

and in sheet: X, in A1:B3

Area Brch
Zone1 2
Zone2 2

Unique zones are listed in A2 down
In B2, copied down is the formula: =COUNTIF(Y!A:A,A2)

I'm looking for a sub which can auto-write the names of the 2 branches into
the comments over the formula cells B2:B3 (which return the counts of the #
of branches for the zones) when I press F9 to recalc the book. This is to
provide another result dimension to the table in X, so as to speak.

So in the comment for B2 will be:
Br10
Br12

and in the comment for B3 will be:
Br11
Br13

Appreciate insights on how the above could be achieved. Thanks.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
 
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
Why do I get #NA as my result when I write a vlookup formula? trainer07 Excel Worksheet Functions 2 February 7th 07 01:13 AM
Write 1st and 2nd dimension array values to cells [email protected] Excel Programming 2 February 28th 06 11:17 PM
IF RESULT OF FORMULA IS 0 WRITE EXTIMATOR byron Excel Worksheet Functions 1 August 21st 05 06:07 AM
Write the result of a formula only once then lock it investor Excel Programming 1 December 7th 04 07:19 PM
Array transfer - 1 dimension v. 2 dimension JWolf[_2_] Excel Programming 2 June 29th 04 01:02 AM


All times are GMT +1. The time now is 07:40 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"