#### Need to sum values that are not strikethroughs

```I need to sum a column without it adding the rows that have strikethroughs
values; is it possible to combine a formula and vb code to a cell ?

=SUM(BH100:BH120) & Activecell.selection.font.strikethrough = false

Thank you
Khf
```
 0
rock1 (11)
5/3/2006 11:41:01 AM
excel.newusers 15348 articles. 2 followers.

1 Replies
851 Views

Similar Articles

[PageSpeed] 22

```Try:

Function zum(r As Range) As Double
Dim rr As Range
For Each rr In r
If rr.Font.Strikethrough = False Then
zum = zum + rr.Value
End If
Next
End Function

In the worksheet use it like:

=zum(A1:A10)
--
Gary''s Student

"Rock" wrote:

> I need to sum a column without it adding the rows that have strikethroughs
> values; is it possible to combine a formula and vb code to a cell ?
>
> =SUM(BH100:BH120) & Activecell.selection.font.strikethrough = false
>
> Thank you
> Khf
```
 0
GarysStudent (1572)
5/3/2006 1:17:01 PM

Similar Artilces:

Need Min Value from Row and Heading Value that Corresponds to it.
I have a table that looks somewhat like this w/o the *'d headings: h1 h2 h3 h4 h5 h6 h7 *Min Price *Heading \$5.00 \$6.00 \$3.00 \$4.00 \$9.00 \$1.00 \$9.00 \$1.00 h6 \$3.00 \$6.00 \$8.00 \$65.00 \$9.00 \$2.00 \$4.00 \$2.00 h6 \$4.00 \$9.00 \$5.00 \$7.00 \$1.00 \$2.00 \$8.00 \$1.00 h5 \$9.00 \$7.00 \$6.00 \$3.00 \$9.00 \$8.00 \$2.00 \$2.00 h7 \$7.00 \$8.00 \$9.00 \$7.00 \$9.00 \$8.00 \$8.00 \$7.00 h1 I have several SKU's with various price contract/programs. I want to find the best price in one cell and the heading that would correspond to that cell in another. I was trying to do this with an expression ...

Match value in one column and return value in same row in next col
Hi, I have a a set of values in A1 through A100. I need to look up each value and find a match in another set of values located in C1 through C200. If a match is found then I need the formula located in column B to return the value in the same row but the next column over (D). Example: A B C D 359 375 10012 456 125 10031 125 10031 952 10052 854 444 10017 The formula located in B3 should find that the value of 125 (located in A3) matches the value in C2 and returns 10031 which is the v...

Text Values #2
I'm tryng to build a spreadsheet to track employee vacations. How do I sum 8 hours if a cell has a "V" entered and 4 hours if a cell has an "X" entered? Assuming you're using column A, and each row is either the number of hours worked, or a V or a X, then use a helper column, B, and insert this in B1 and copy down.......change the A1's to A2's if you have a header in Row 1, and put this in B2. =IF(A1="V",8,IF(A1="X",4,A1)) Vaya con Dios, Chuck, CABGx3 "Brando" <carpenterchsd@earthlink.net> wrote in message news:1113...

Not sure if Excel can do what i need
Hello all, I am obviously a new user to excel. I have a psychological assessmen that needs to be computerised for ease of use in obtaining results. Here is what i would like to happen. I have 28 questions with fiv Likert scale options(0-4) for answers. Each question addresses 1 of different personality traits. So questions 1, 6, 8, 22 look at anger. Where as questions 2, 9, 28 look at happiness. What i would like is fo excel to group the answers and give me the total number for each trait. Then based on that number, give out a prewritten (which i would provide result of the assessment. ...

Graph
Hi, Here is the problem - There is a graph I have to create, based on the following information: I have projects names, and each project has the following data: 1. Estimated cost. 2. Actual cost. 3.Status, which can be one of 3: a. over with b. in progress c. per demand I need to put the data on a 3D column graph, in a way that each project will have 2 columns that compare estimated and actual cost, but the problem is I also need to put some kind of an attribute on every project which reflects its status. How do I do that? Thanks in advance, Chen. Chen - I'd suggest a 2D chart type in...

Excel need help
I have 2 columns a and b . a contains payment b contains balance. I have the entire col b with the formula. my ? is when the balance appearsin b it is in all the cells in that column.I only want it in the used ones, not the unused ones:( example \$270.00 16,730.00 \$270.00 16,460.00 \$100.00 16,360.00 \$300.00 16,060.00 \$270.00 15,790.00 15,790.00 15,790.00 15,790.00 15,790.00 15,790.00 this 15790.00 is in col b...not a...I want no bal in unused cells -- fiftieslady ------------------------------------------------------------------------ fiftieslady's Profile: http://www.excelforum.co...

New Address type picklist value not appearing in picklist on forms
Hi, I've customized my Customer Address form to add a new AddressType value of "Registered Office"; value is 6 and I can see it when I go into the form customization editor. However, when I try to add a new address to, say, a Contact, this new address type value isn't shown. Ditto if I attempt to edit an existing address. What am I doing wrong? Thanks. -- Michael Mayne Did you publish the forms and then issue an IISRESET? Matt Parks MVP - Microsoft CRM ---------------------------------------- ---------------------------------------- On Wed, 1 Dec 2004 10:21:04 -0800, ...

Excel newbie needs help from math wiz (poker related)
I want to create a Excel workbook that will help in specific poker situations. Short version: I want to be able to calculate how often my opponent will need to fold for an all-in raise to show a positive expectation. Explanation: In poker you can win a hand by having the best hand at the end OR getting your opponent to fold. A common situation comes up where you have a "drawing hand" and face a bet by your opponent. In this situation you know you are currently behind in the hand, but have a chance to win if you catch some of your "outs" (cards that will give you th...

How can I link 2 pages without using the actual sheet as a reference? In other words, can I have two sheets linked by Identifying the same exact names one on each sheet? ...

Macro help needed........
How do I sort a particular column in ascending order and change the pag setup to landscape and margins to 0.25 using a macro code ? does anyone have a macro code for this ????? -- Message posted from http://www.ExcelForum.com Hi you have already received some answers in your previous threads please don't multipost! -- Regards Frank Kabel Frankfurt, Germany > How do I sort a particular column in ascending order and change the > page setup to landscape and margins to 0.25 using a macro code ? > > does anyone have a macro code for this ?????? > > > --- > Me...

Need to test a mobo
I had a power surge about 3 weeks ago - lost a drive, now making ticking noises. I had another two drive that seem to work sporadically now. So, I thought it might have been my power supply. Bought a tester and found out that all seems well. Next, I bought a new hard drive and found that it was also acting up - making noises like whirring up and down (like the other drives I thought were dead). So I am starting to wonder if it is my mobo - but how can I test this out? I am using a dual boot - Win XP and Win 7 - both drives work and don't work. Up and down. Right now my Win7 ...

Help needed
is there anyway you can see what links to other workbooks are associated with the workbook you have open. The problem i am having is when i open the workbook in question a message appears and states "The workbook you opened contains automatic links to information in another workbook. do you want to update this workbook with changes made to the other workbook" Yes....... No. if i click No the workbook opens, however if i click Yes the workbook just hangs and i have to go into task manager to shut down the system. I can only assume that there is a problem with one of the links....

Need help on this....thanks
I have an Excel worksheet which stored a survey outcome of over 1200 members. There are over 30 questions in the survey and the first column captured the member ID. The problem is 3 of the survey questions that allow multiple answers, instead the answer for those three questions are captured in seperate column, the answers are stored in a single column and it makes it very difficult to analysis those result. As a result I created addittional columns depending on the total number of the answers available for that question and assign the result manually to that column. It is very time consuming ...

How do you print ole objects.. Thanks lachanda -- Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/Forums.aspx/access-forms/200710/1 On Wed, 03 Oct 2007 18:13:40 GMT, "misschanda via AccessMonster.com" <u36612@uwe> wrote: >How do you print ole objects.. >Thanks >lachanda What *kind* of OLE objects? Many of them are binary blobs (such as programs) which are inherently not printable. More details please! John W. Vinson [MVP] ...

I need Help
I have a random popup that i cant stop,when it does come up it seems to know what i was looking at,like when i was looking for registry cleaner it popped up and showed me one,any help would be great. On Jan 22, 6:57=A0am, Larry <La...@discussions.microsoft.com> wrote: > I have a random popup that i cant stop,when it does come up it seems to k= now > what i was looking at,like when i was looking for registry cleaner it pop= ped > up and showed me one,any help would be great. To eliminate questions and guessing, please provide additional information about your sys...

Find max value from 3 cells, return text, but 2 max values same!
Hi, I'm using a simple formula to find and return the maximum value from 3 compared columns (N, Q & T) and place that max value in column U (same row). Equation in column U is: =MAX(N3,Q3,T3) SK17 EC3 PL2 Max Text N O P Q R S T U V 3 6 5 1 6 4 6 3 3 6 5 5 5 2 5 6 1 ...

Stuck in review and need to be in design.
I am using Visio 2007. I need to complete the diagram that I have been working on and I hit the review key by mistake. How do I get back to the design screen? On Wed, 4 Nov 2009 16:14:01 -0800, cameron <cameron@discussions.microsoft.com> wrote: >I am using Visio 2007. I need to complete the diagram that I have been >working on and I hit the review key by mistake. How do I get back to the >design screen? menu Tools -> Track Markup and then close the Review window. -- Regards, Paul Herber, Sandrila Ltd. DFD/SSADM for Visio http://www.visio-dfd.sa...

Need Help Despertly!
I am in a desperate situation. I had to reformat my hard drive. Prior to do this, I copied my entire User Profile to another drive. I can now access my User Profile information from Windows Explorer. Now that I installed Microsoft Outlook, I do not see any of my Contacts. I need to restore my Contacts to the new Outlook installation. Again, I did save my entire "User Profile" from my previous installation of Windows 2000 Professional. I just do not know how to access my Contact information from Outlook that included addresses and phone numbers and such. Any help would be greatly appr...

Find & replace a value in an unknown cell location
Is there a function I can use to find a text string in a particular column - say in column (H) for string 'Mytotal' to be replaced by 'Subtotal' when the cell location of 'Mytotal' is unknown only the column is known? And also is there a function that can find a certain value in a column then delete the row below the found value? e.g in column (H) find 'Subtotal' then delete the row below the occurance of 'Subtotal'. Help is much appreciated with this one? You can use MATCH to find where "Mytotal" is located, assuming you know either th...

Plug in needed
Looking for an Outlook plug in which, on reply to a e-mail, will:- a) allow selective quoting only, and b) not top quote. Anything around at all? Much to my horror (sorry guys) the Boss wants us to use Outofluck at work! -- On the carpool lane lane to Nirvana. John Phillips <flatulentdingo@deadspam.com> wrote: > Looking for an Outlook plug in which, on reply to a e-mail, will:- > > a) allow selective quoting only, and > > b) not top quote. > > Anything around at all? The best Outlook adjunct I've found for quote handling on replies is Outlook-Quotef...

Ranking range of cell with value only
I am ranking set of numbers (# of days worked) in a 10 cell column but the numbers of persons I rank differs from day to day. If I enter "0"(zero) on one of the cell, it ranks the whole ten cells. I have to enter Zero because that is the number of days worked. How can I enter the value of zero that does not activate the other blank cells? Here is my formula: =IF(ISNA(RANK(B5,\$B\$5:\$B\$14,1)),"",RANK(B5,\$B\$5:\$B\$14,1)) Thanks. -- cardingtr ------------------------------------------------------------------------ cardingtr's Profile: http://www.excelforum.com/member.ph...

Index/Match to look up a value in one workbook and insert it into.
I need to be able to look up a value in a range on one Excel workbook using a code in another workbook. Can I use Index/Match for this function; looking for the value in one workbook and inserting it into another workbook? Currently, I use Vlookup, which is cumbersom and awkward and prone to error. Thank you. You can use =index(match()), but I think you may have as much trouble with that as you have with =vlookup(). You may want to look at the formula tips that Debra Dalgleish shares: http://www.contextures.com/xlFunctions02.html and http://www.contextures.com/xlFunctions03.html Mayb...

What is the Need for XSD in Application Blocks designing
Can anyone help in clearing my doubt Hi, There is a need for me to implement Application Blocks in my project, (Basically 3 tire), the project comprises of UIL, BLL,Business Entities, DAL.. When i saw the example programs from User Interface Application Block example, which is implementing the Business Layer part, Interface for BLL and Business Entity part where by i am not able to understand the real usage of XSD's and the autogenerated C#? Can anyone explain me what is the process flow behind this fuda in a simple terms. Thanks in Advance Jagadeesh ...

Need to Hire Outlook 2003 Help
Hi I'd like to hire someone that can walk me through some specific stuff with outlook 2003 I'm using the Lotus Notes to Outlook plugin My compnay is a Notes shop - which means I get NO support for outlook --- this plugin is a god send and i want to make sure I get it set up correctly It's coming out of my pocket but I'm willing to pay if I can find the right person to help me Please post ideas here or email me Thanks Brendan ...

Which setting do I need to adjust