Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default picking some data from a column


Hi, i'm trying to run some reports on an automatically generate
worksheet from our company database.

Unfortunately, the data is formatted in columns something like:

Column Title
1
8
12
5
15
...
11
9
1

The data in bold is actually the lifetime average value for the data i
the columns. I just need to run simple countif macros on the nonbolde
data, is there an easy way to grab just the data I want? I'm kinda ne
to vba and excel and havn't been given much time to read up on thing
so my apologies if this is obvious

--
guente
-----------------------------------------------------------------------
guenter's Profile: http://www.excelforum.com/member.php...fo&userid=2556
View this thread: http://www.excelforum.com/showthread.php?threadid=38995

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 692
Default picking some data from a column

You might try this

Dim x as Long, cel as Range

x = 0

For each cel in Range("A1:A250") ' <<< set to your range (this could be a
variable)
If cel.Font.Bold = False then
x = x+1
End If
Next

Msgbox "The count is: " & x


To avoid blank cells use:

If cel.Font.Bold = False And Len(cel) 0 then

--
steveB

Remove "AYN" from email to respond
"guenter" wrote in
message ...

Hi, i'm trying to run some reports on an automatically generated
worksheet from our company database.

Unfortunately, the data is formatted in columns something like:

Column Title
10
8
12
5
15
..
11
9
10

The data in bold is actually the lifetime average value for the data in
the columns. I just need to run simple countif macros on the nonbolded
data, is there an easy way to grab just the data I want? I'm kinda new
to vba and excel and havn't been given much time to read up on things
so my apologies if this is obvious.


--
guenter
------------------------------------------------------------------------
guenter's Profile:
http://www.excelforum.com/member.php...o&userid=25562
View this thread: http://www.excelforum.com/showthread...hreadid=389952



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default picking some data from a column


Thank you very much.


--
guenter
------------------------------------------------------------------------
guenter's Profile: http://www.excelforum.com/member.php...o&userid=25562
View this thread: http://www.excelforum.com/showthread...hreadid=389952

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
Picking a value from a table using Column and Row ranges? James Dalton[_2_] Excel Worksheet Functions 2 May 20th 08 11:02 PM
Picking up the latest text value in a column djmagcruznyc Excel Worksheet Functions 5 May 5th 08 09:01 PM
Picking up last value in column in Excel surreygraham Excel Worksheet Functions 3 February 16th 08 12:38 AM
Picking one column of info scott45 Excel Worksheet Functions 0 October 25th 05 06:16 PM
Picking the latest entries from a column No Name Excel Programming 1 August 23rd 04 05:57 PM


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