Home News Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | EXCEL Question


You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > General IT Discussion

EXCEL Question
Reply
 
Thread Tools
Old 22-02-2006, 11:42   #1
NEONKNIGHT
Guest
 
Posts: n/a
Question EXCEL Question

Does anybody know how I could identify the number of charcters within each cell of a spreadsheet. There is over 700 lines of information but I need to know whether any cells have over 30 characters within them.

Cheers
  Reply With Quote
Advertisement
Old 22-02-2006, 11:44   #2
LSainsbury
cf.mega poster
 
Join Date: Sep 2003
Location: Near Hungerford, West Berkshire
Services: TV: Sky HD, Landline: BT, Mobile: Orange, Internet: Quite Slow!
Posts: 6,572
LSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronze
LSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronze
Re: EXCEL Question

GOOGLE is your friend!!!

USE IT!!!!
__________________
Cheers,
Lee


Please take a look at my photography site and leave me some feedback.
LSainsbury is offline   Reply With Quote
Old 22-02-2006, 11:50   #3
gazzae
cf.mega poster
spankthemonkey Champion
 
gazzae's Avatar
 
Join Date: Jun 2003
Location: Belfast
Age: 33
Posts: 4,594
gazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronze
gazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronze
Re: EXCEL Question

Off the top of my head
Code:
Set w = Worksheets("sheet1")
Set r = w.Range(w.Cells(5, 1), w.Cells(50, 10))

For Each i In r
    If Len(i.Value) > 30 Then
        MsgBox "Blah"
    End If

Next
You can then replace the message box with what you want to do with the cells over 30.
gazzae is offline   Reply With Quote
Old 22-02-2006, 12:20   #4
NEONKNIGHT
Guest
 
Posts: n/a
Talking Re: EXCEL Question

Thanks for the replys. I've found a way by adding in an extra column to the data I want to count if you put in =LEN(Cell Ref) this gives you the total charcters in that cell.

  Reply With Quote
Old 22-02-2006, 12:28   #5
gazzae
cf.mega poster
spankthemonkey Champion
 
gazzae's Avatar
 
Join Date: Jun 2003
Location: Belfast
Age: 33
Posts: 4,594
gazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronze
gazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronze
Re: EXCEL Question

Quote:
Originally Posted by NEONKNIGHT
Thanks for the replys. I've found a way by adding in an extra column to the data I want to count if you put in =LEN(Cell Ref) this gives you the total charcters in that cell.


That way would be the best if its only one column where cells will have over 30 characters.

The code way is the best if you have any number of columns in a range where cells could have over 30 characters. You could use i.Interior.ColorIndex = 3 to mark each cell over 30 characters red.
gazzae is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Google Search




All times are GMT. The time now is 15:05.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Copyright © 2003 - 2012, Cable Forum.
(server6.cableforum.co.uk)

SEO by vBSEO 3.3.2