Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
HeatherC
 
Posts: n/a
Default Formulae when some cells contain #N/A

How do I sum cells that include #N/A in the range. The #N/A is the result of
a lookup formulae. I want such cells to register as 0. Currently the sum of
the cells gives #N/A as the answer.
Thanks
  #2   Report Post  
Nick Hodge
 
Posts: n/a
Default

Heather

Use the ISNA function, thus

=IF(ISNA(ExistingVlookup),0,ExistingVlookup)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS

"HeatherC" wrote in message
...
How do I sum cells that include #N/A in the range. The #N/A is the result
of
a lookup formulae. I want such cells to register as 0. Currently the sum
of
the cells gives #N/A as the answer.
Thanks



  #3   Report Post  
Ken Wright
 
Posts: n/a
Default

Always try and fix errors at source rather than compensating for them.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------

"HeatherC" wrote in message
...
How do I sum cells that include #N/A in the range. The #N/A is the result

of
a lookup formulae. I want such cells to register as 0. Currently the sum

of
the cells gives #N/A as the answer.
Thanks



  #4   Report Post  
EdWeitz
 
Posts: n/a
Default


-----Original Message-----
Always try and fix errors at source rather than

compensating for them.

--
Regards
Ken....................... Microsoft MVP -

Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------

------------------
It's easier to beg forgiveness than ask

permission :-)
----------------------------------------------------------

------------------

"HeatherC" wrote in

message
...
How do I sum cells that include #N/A in the range. The

#N/A is the result
of
a lookup formulae. I want such cells to register as 0.

Currently the sum
of
the cells gives #N/A as the answer.
Thanks


You can try using IIf Function


or If Then constructs.

.

  #5   Report Post  
Lee IT
 
Posts: n/a
Default

I am having the same problem!
I have several data tables of identical layout that are updated daily, the
first two manually and the others by preset formula that calculates from the
first two. If a zero or no data are input into cells in the first two then
the formula of the others will return #NA, this is intentional because charts
are plotted from the latter tables and #NA prevents zero's being plotted all
over it for data that has not been entered yet (zero is a valid in negative
and positive data entry only when entered).

Each table has a SUM total but if #NA exits in any of the cells totaled the
SUM is returned #NA.

"Nick Hodge" wrote:

Heather

Use the ISNA function, thus

=IF(ISNA(ExistingVlookup),0,ExistingVlookup)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS

"HeatherC" wrote in message
...
How do I sum cells that include #N/A in the range. The #N/A is the result
of
a lookup formulae. I want such cells to register as 0. Currently the sum
of
the cells gives #N/A as the answer.
Thanks






  #6   Report Post  
Lee IT
 
Posts: n/a
Default

PS I tried the ISNA method you proposed (assuming that ExistingVlookup was
the range) but that resulted in #VALUE!

"Lee IT" wrote:

I am having the same problem!
I have several data tables of identical layout that are updated daily, the
first two manually and the others by preset formula that calculates from the
first two. If a zero or no data are input into cells in the first two then
the formula of the others will return #NA, this is intentional because charts
are plotted from the latter tables and #NA prevents zero's being plotted all
over it for data that has not been entered yet (zero is a valid in negative
and positive data entry only when entered).

Each table has a SUM total but if #NA exits in any of the cells totaled the
SUM is returned #NA.

"Nick Hodge" wrote:

Heather

Use the ISNA function, thus

=IF(ISNA(ExistingVlookup),0,ExistingVlookup)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS

"HeatherC" wrote in message
...
How do I sum cells that include #N/A in the range. The #N/A is the result
of
a lookup formulae. I want such cells to register as 0. Currently the sum
of
the cells gives #N/A as the answer.
Thanks




  #7   Report Post  
Dave Peterson
 
Posts: n/a
Default

existingvlookup was a shortcut for not writing your formula.


It would look more like this in real life:

=if(isna(vlookup(a1,sheet2!a1:b99,2,false),0,vlook up(a1,sheet2!a1:b99,2,false)))


Lee IT wrote:

PS I tried the ISNA method you proposed (assuming that ExistingVlookup was
the range) but that resulted in #VALUE!

"Lee IT" wrote:

I am having the same problem!
I have several data tables of identical layout that are updated daily, the
first two manually and the others by preset formula that calculates from the
first two. If a zero or no data are input into cells in the first two then
the formula of the others will return #NA, this is intentional because charts
are plotted from the latter tables and #NA prevents zero's being plotted all
over it for data that has not been entered yet (zero is a valid in negative
and positive data entry only when entered).

Each table has a SUM total but if #NA exits in any of the cells totaled the
SUM is returned #NA.

"Nick Hodge" wrote:

Heather

Use the ISNA function, thus

=IF(ISNA(ExistingVlookup),0,ExistingVlookup)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS

"HeatherC" wrote in message
...
How do I sum cells that include #N/A in the range. The #N/A is the result
of
a lookup formulae. I want such cells to register as 0. Currently the sum
of
the cells gives #N/A as the answer.
Thanks




--

Dave Peterson
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
Help adding text values Texas-DC_271 Excel Worksheet Functions 7 January 15th 05 11:14 PM
Convert data type of cells to Text,Number,Date and Time Kevin Excel Worksheet Functions 1 December 31st 04 12:57 PM
To safety merge cells without data destroyed, and smart unmerge! Kevin Excel Discussion (Misc queries) 0 December 30th 04 07:17 AM
Heps to design Locked/Unlocked cells in protected worksheet Kevin Excel Discussion (Misc queries) 0 December 30th 04 07:09 AM
Convert data of cells to any type: Number, Date&Time, Text Kevin Excel Discussion (Misc queries) 0 December 30th 04 06:55 AM


All times are GMT +1. The time now is 04:00 AM.

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

About Us

"It's about Microsoft Excel"