A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Sumif cell has a boarder



 
 
Thread Tools Display Modes
  #1  
Old October 20th, 2003, 02:24 PM
external usenet poster
 
Posts: n/a
Default Sumif cell has a boarder

Hi,

I have a spreadsheet with a column that has cells with
totals and cells with just numerical data. Each cell that
I want to total has a boarder around it. Is there anyway
that I can Sum If a cell has a boarder?

(Using the Subtotal function will not work in this case.)

Thanks for your help!
N
  #2  
Old October 20th, 2003, 02:46 PM
Peo Sjoblom
external usenet poster
 
Posts: n/a
Default Sumif cell has a boarder

If indeed the data is either just plain numbers or sum formulas, one way
would be to select the column,
press F5, click special, select formulas, copy, then paste somewhere else,
this way you can paste them onto a new sheet, then just sum the whole
column, then subtract the
formulas that you copied somewhere else, i.e.

=SUM(D195)-SUM(Sheet2!A1:A10)

where D195 is the total of the range and sheet2 A1:A10 holds the totals.



--

Regards,

Peo Sjoblom


wrote in message
...
Hi,

I have a spreadsheet with a column that has cells with
totals and cells with just numerical data. Each cell that
I want to total has a boarder around it. Is there anyway
that I can Sum If a cell has a boarder?

(Using the Subtotal function will not work in this case.)

Thanks for your help!
N



  #3  
Old October 20th, 2003, 03:08 PM
Don Guillett
external usenet poster
 
Posts: n/a
Default Sumif cell has a boarder

You may have to modify to suit your borders but try this

Sub sumborders()
For Each c In [d9:d12]
If c.Borders(xlEdgeLeft).LineStyle 0 _
Then mysum = mysum + c.Value
Next
MsgBox mysum
End Sub

wrote in message
...
Hi,

I have a spreadsheet with a column that has cells with
totals and cells with just numerical data. Each cell that
I want to total has a boarder around it. Is there anyway
that I can Sum If a cell has a boarder?

(Using the Subtotal function will not work in this case.)

Thanks for your help!
N



 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:15 AM.


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