Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Can i get a sum function to recognise X (letter) as a number?

I need to get a sum function to recognise an 'x' or 'NA' as a number as not
to mess up an overall percentage function later on in the worksheet.
This is for an inspection & cells would usually have a 1 - 5 value placed in
them but sometimes the field is not applicable.
Is it possible??
Can anyone help??
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Can i get a sum function to recognise X (letter) as a number?

What number do you want your x to be recognised as?

The SUM() and AVERAGE() functions will ignore a cell containing text, so
your sum and average would look at the numbers in your range, and include
that cell when you change it from X to a number.

If you want x to be treated as some specific number, tell us what number you
want it treated as.
--
David Biddulph

"nomad" wrote in message
...
I need to get a sum function to recognise an 'x' or 'NA' as a number as not
to mess up an overall percentage function later on in the worksheet.
This is for an inspection & cells would usually have a 1 - 5 value placed
in
them but sometimes the field is not applicable.
Is it possible??
Can anyone help??



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default Can i get a sum function to recognise X (letter) as a number?

I think you want this array formula

=AVERAGE(IF(ISNUMBER(I1:I5),I1:I5))

As an arary formula, commit with Ctrl-Shift-Enter, not just Enter.

--
__________________________________
HTH

Bob

"nomad" wrote in message
...
I need to get a sum function to recognise an 'x' or 'NA' as a number as not
to mess up an overall percentage function later on in the worksheet.
This is for an inspection & cells would usually have a 1 - 5 value placed
in
them but sometimes the field is not applicable.
Is it possible??
Can anyone help??



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Can i get a sum function to recognise X (letter) as a number?

Yes, i need it to be recognised as 5.

"David Biddulph" wrote:

What number do you want your x to be recognised as?

The SUM() and AVERAGE() functions will ignore a cell containing text, so
your sum and average would look at the numbers in your range, and include
that cell when you change it from X to a number.

If you want x to be treated as some specific number, tell us what number you
want it treated as.
--
David Biddulph

"nomad" wrote in message
...
I need to get a sum function to recognise an 'x' or 'NA' as a number as not
to mess up an overall percentage function later on in the worksheet.
This is for an inspection & cells would usually have a 1 - 5 value placed
in
them but sometimes the field is not applicable.
Is it possible??
Can anyone help??




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Can i get a sum function to recognise X (letter) as a number?

can you elaborate al little? which cell (s) does this go in?

"Bob Phillips" wrote:

I think you want this array formula

=AVERAGE(IF(ISNUMBER(I1:I5),I1:I5))

As an arary formula, commit with Ctrl-Shift-Enter, not just Enter.

--
__________________________________
HTH

Bob

"nomad" wrote in message
...
I need to get a sum function to recognise an 'x' or 'NA' as a number as not
to mess up an overall percentage function later on in the worksheet.
This is for an inspection & cells would usually have a 1 - 5 value placed
in
them but sometimes the field is not applicable.
Is it possible??
Can anyone help??






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Can i get a sum function to recognise X (letter) as a number?

I dont think this is what im looking for

"Bob Phillips" wrote:

I think you want this array formula

=AVERAGE(IF(ISNUMBER(I1:I5),I1:I5))

As an arary formula, commit with Ctrl-Shift-Enter, not just Enter.

--
__________________________________
HTH

Bob

"nomad" wrote in message
...
I need to get a sum function to recognise an 'x' or 'NA' as a number as not
to mess up an overall percentage function later on in the worksheet.
This is for an inspection & cells would usually have a 1 - 5 value placed
in
them but sometimes the field is not applicable.
Is it possible??
Can anyone help??




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 168
Default Can i get a sum function to recognise X (letter) as a number?

Hi Nomad,

Maybe this might work,
=SUM(A1:A30)+(COUNTIF(A1:A30,"x")*5)

You will rpobably need to add some sort of error checking
but that depends on how your sheet is set-up.

HTH
Martin


"nomad" wrote in message
...
I need to get a sum function to recognise an 'x' or 'NA' as a number as not
to mess up an overall percentage function later on in the worksheet.
This is for an inspection & cells would usually have a 1 - 5 value placed
in
them but sometimes the field is not applicable.
Is it possible??
Can anyone help??



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Can i get a sum function to recognise X (letter) as a number?

Say we have a column of mixed values:

13
13
13
13
13
happy
13
13
13
sad
13
13
13
13
13
13
13

We want to sum the column, but want ANY text cell to be treated as a 5.

=SUM(A1:A17)+5*(COUNTA(A1:A17)-COUNT(A1:A17))

will display 205
--
Gary''s Student - gsnu200800


"nomad" wrote:

I need to get a sum function to recognise an 'x' or 'NA' as a number as not
to mess up an overall percentage function later on in the worksheet.
This is for an inspection & cells would usually have a 1 - 5 value placed in
them but sometimes the field is not applicable.
Is it possible??
Can anyone help??

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
how do i get formula to recognise text as = to a number?(excel) david Excel Worksheet Functions 2 March 9th 07 05:55 PM
How to recognise a small letter as being different to a capital le Suza Excel Discussion (Misc queries) 4 December 28th 06 02:37 PM
How do I get Excell to recognise 0 at the beginning of a number? The Wonder From Downunder Excel Discussion (Misc queries) 4 February 4th 06 11:57 AM
change headers from letter to number/number to letter lazybee Excel Worksheet Functions 1 July 29th 05 11:08 PM
column header changed from letter to number, how return to letter Ron Excel Discussion (Misc queries) 2 May 9th 05 08:34 PM


All times are GMT +1. The time now is 04:22 PM.

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

About Us

"It's about Microsoft Excel"