Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 69
Default Assessing range values 2

I have a selected range which consists of one column of various designated
two character codes .e.g. NW, UW,NR, NT and the like.

I need to be able to analyise the range and count the number of instances of
each code. The I then need to enter these values into another sheet in a row
under the various applicable column headings.

For eaxmple.

Source range looks like this:

UW
NW
NT
NW
NT
UT
NW

target looks like this

NW UW NT UT etc
2 1 2 1 etc

The target cells are to be added as the next new row in the target sheet
each time the procedure is run so I need VBA code to do this please.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Assessing range values 2

One way:

Assume source range is column A and begins on row 2
and column headings start in B1

in the cell under each column enter this formula:

=COUNTIF($A2:$A50,B$1)

Glen

"Alan M" wrote in message
...
I have a selected range which consists of one column of various designated
two character codes .e.g. NW, UW,NR, NT and the like.

I need to be able to analyise the range and count the number of instances
of
each code. The I then need to enter these values into another sheet in a
row
under the various applicable column headings.

For eaxmple.

Source range looks like this:

UW
NW
NT
NW
NT
UT
NW

target looks like this

NW UW NT UT etc
2 1 2 1 etc

The target cells are to be added as the next new row in the target sheet
each time the procedure is run so I need VBA code to do this please.



Reply
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
SUMPRODUCT or SUMIF if any values in a range equal any values in another range PCLIVE Excel Worksheet Functions 3 July 15th 09 07:43 PM
Need help assessing problem. sshes Excel Discussion (Misc queries) 2 July 19th 06 11:04 PM
Assessing unconventional projects khwaja Excel Worksheet Functions 1 January 30th 06 03:49 AM
Assessing range values. Alan M Excel Programming 2 February 16th 05 04:59 PM
Assessing File's Properties Wendy[_3_] Excel Programming 1 November 11th 03 09:37 PM


All times are GMT +1. The time now is 06:35 PM.

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

About Us

"It's about Microsoft Excel"