Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
G G is offline
external usenet poster
 
Posts: 52
Default Sum Fields with #NA ?

I've got a number of fields with VLOOKUP formula that will NOT be populated
until a later date. However, I'm trying to sum up all fields at the same
time, even though they won't be populated.

As you would expect, I'm getting a "#NA" for fields that are not populated
and the SUM is also "#NA".

Is there a way to bypass all "#NA" fields when I SUM them and get the total
of all fields that ARE populated?

Thanks in advance for your help.

G
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Sum Fields with #NA ?

One way:

=sum(if(isnumber(a1:a10),a1:a10))

This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it
correctly, excel will wrap curly brackets {} around your formula. (don't type
them yourself.)

Adjust the range to match--but you can't use the whole column--oddly enough, you
can use the whole row.

or maybe...

=SUMIF(A1:A10,"<#N/A",A1:A10)



G wrote:

I've got a number of fields with VLOOKUP formula that will NOT be populated
until a later date. However, I'm trying to sum up all fields at the same
time, even though they won't be populated.

As you would expect, I'm getting a "#NA" for fields that are not populated
and the SUM is also "#NA".

Is there a way to bypass all "#NA" fields when I SUM them and get the total
of all fields that ARE populated?

Thanks in advance for your help.

G


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Sum Fields with #NA ?


"Dave Peterson" wrote in message
...
One way:

=sum(if(isnumber(a1:a10),a1:a10))

This is an array formula. Hit ctrl-shift-enter instead of enter. If you

do it
correctly, excel will wrap curly brackets {} around your formula. (don't

type
them yourself.)

Adjust the range to match--but you can't use the whole column--oddly

enough, you
can use the whole row.


Not really odd, array formulae have a limit of 65535, a row can only get to
256.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Sum Fields with #NA ?

I guess it depends on what odd is?

I find it odd that 65535 elements are ok, but 65536 ain't.

===
And it's nice to note that these limits have been changed in the upcoming
version of excel. (Whole columns will be ok.)


Bob Phillips wrote:

"Dave Peterson" wrote in message
...
One way:

=sum(if(isnumber(a1:a10),a1:a10))

This is an array formula. Hit ctrl-shift-enter instead of enter. If you

do it
correctly, excel will wrap curly brackets {} around your formula. (don't

type
them yourself.)

Adjust the range to match--but you can't use the whole column--oddly

enough, you
can use the whole row.


Not really odd, array formulae have a limit of 65535, a row can only get to
256.


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Sum Fields with #NA ?

2^16-1

2x8 bit bytes, maximum value

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Dave Peterson" wrote in message
...
I guess it depends on what odd is?

I find it odd that 65535 elements are ok, but 65536 ain't.

===
And it's nice to note that these limits have been changed in the upcoming
version of excel. (Whole columns will be ok.)


Bob Phillips wrote:

"Dave Peterson" wrote in message
...
One way:

=sum(if(isnumber(a1:a10),a1:a10))

This is an array formula. Hit ctrl-shift-enter instead of enter. If

you
do it
correctly, excel will wrap curly brackets {} around your formula.

(don't
type
them yourself.)

Adjust the range to match--but you can't use the whole column--oddly

enough, you
can use the whole row.


Not really odd, array formulae have a limit of 65535, a row can only get

to
256.


--

Dave Peterson





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Sum Fields with #NA ?

256^2-1

16^4-1

spooky

--
Regards,
Tom Ogilvy


"Bob Phillips" wrote in message
...
2^16-1

2x8 bit bytes, maximum value

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Dave Peterson" wrote in message
...
I guess it depends on what odd is?

I find it odd that 65535 elements are ok, but 65536 ain't.

===
And it's nice to note that these limits have been changed in the

upcoming
version of excel. (Whole columns will be ok.)


Bob Phillips wrote:

"Dave Peterson" wrote in message
...
One way:

=sum(if(isnumber(a1:a10),a1:a10))

This is an array formula. Hit ctrl-shift-enter instead of enter.

If
you
do it
correctly, excel will wrap curly brackets {} around your formula.

(don't
type
them yourself.)

Adjust the range to match--but you can't use the whole column--oddly
enough, you
can use the whole row.

Not really odd, array formulae have a limit of 65535, a row can only

get
to
256.


--

Dave Peterson





  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Sum Fields with #NA ?

I understand the arithmetic. I just find it odd.

Bob Phillips wrote:

2^16-1

2x8 bit bytes, maximum value

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Dave Peterson" wrote in message
...
I guess it depends on what odd is?

I find it odd that 65535 elements are ok, but 65536 ain't.

===
And it's nice to note that these limits have been changed in the upcoming
version of excel. (Whole columns will be ok.)


Bob Phillips wrote:

"Dave Peterson" wrote in message
...
One way:

=sum(if(isnumber(a1:a10),a1:a10))

This is an array formula. Hit ctrl-shift-enter instead of enter. If

you
do it
correctly, excel will wrap curly brackets {} around your formula.

(don't
type
them yourself.)

Adjust the range to match--but you can't use the whole column--oddly
enough, you
can use the whole row.

Not really odd, array formulae have a limit of 65535, a row can only get

to
256.


--

Dave Peterson


--

Dave Peterson
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 486
Default Sum Fields with #NA ?

You are best off to avoid the #na's coming out of the vlookups. My prefered
method is to use a countif something like this...

=if(countif(B1:B10, A1) = 0, 0, vlookup(A1, B1:C10, 2, false))
--
HTH...

Jim Thomlinson


"G" wrote:

I've got a number of fields with VLOOKUP formula that will NOT be populated
until a later date. However, I'm trying to sum up all fields at the same
time, even though they won't be populated.

As you would expect, I'm getting a "#NA" for fields that are not populated
and the SUM is also "#NA".

Is there a way to bypass all "#NA" fields when I SUM them and get the total
of all fields that ARE populated?

Thanks in advance for your help.

G

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
fields names do not show in excel 2007 pivot table fields list marlo17 New Users to Excel 2 December 1st 08 01:25 PM
Excel SHOULD NOT AUTO-CHANGE formated text fields to DATE FIELDS! PSSSD Excel Worksheet Functions 2 August 8th 06 09:31 PM
Catalogue of fields' connection whit external fields ( sheets) Nicola Excel Programming 0 September 27th 03 10:51 AM
Catalogue of fields' connection whit external fields ( sheets) nicola Excel Programming 0 September 27th 03 10:43 AM
Catalogue of fields' connection whit external fields ( sheets) Nicola Bianchi Excel Programming 0 September 27th 03 10:42 AM


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