#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 168
Default SUM

hello,
i have some problem which i mentioned is as under:

A1 B1(this cell has vlookup formula) C1(result)
1000 900 =SUM(A1-B1)

#VALUE! error is coming out if B1 is empty otherwise is ok.

thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default SUM

=IF(ISNA(VLOOKUP(...)),0,VLOOKUP(....)

This puts a 0 in place of a blank or #N/A error. Then your sum will work
correctly.

Dave
--
A hint to posters: Specific, detailed questions are more likely to be
answered than questions that provide no detail about your problem.


"Tufail" wrote:

hello,
i have some problem which i mentioned is as under:

A1 B1(this cell has vlookup formula) C1(result)
1000 900 =SUM(A1-B1)

#VALUE! error is coming out if B1 is empty otherwise is ok.

thanks in advance.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default SUM

Try:

=(IF(ISNUMBER(B1),A1-B1,A1))

"Tufail" wrote:

hello,
i have some problem which i mentioned is as under:

A1 B1(this cell has vlookup formula) C1(result)
1000 900 =SUM(A1-B1)

#VALUE! error is coming out if B1 is empty otherwise is ok.

thanks in advance.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 168
Default SUM

thank you very much it's working.

"Toppers" wrote:

Try:

=(IF(ISNUMBER(B1),A1-B1,A1))

"Tufail" wrote:

hello,
i have some problem which i mentioned is as under:

A1 B1(this cell has vlookup formula) C1(result)
1000 900 =SUM(A1-B1)

#VALUE! error is coming out if B1 is empty otherwise is ok.

thanks in advance.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default SUM

Try this:

=IF(COUNT(A1:B1)<2,"",A1-B1)

Biff

"Tufail" wrote in message
...
hello,
i have some problem which i mentioned is as under:

A1 B1(this cell has vlookup formula) C1(result)
1000 900 =SUM(A1-B1)

#VALUE! error is coming out if B1 is empty otherwise is ok.

thanks in advance.





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 168
Default SUM

thank you very much it's working too.

"T. Valko" wrote:

Try this:

=IF(COUNT(A1:B1)<2,"",A1-B1)

Biff

"Tufail" wrote in message
...
hello,
i have some problem which i mentioned is as under:

A1 B1(this cell has vlookup formula) C1(result)
1000 900 =SUM(A1-B1)

#VALUE! error is coming out if B1 is empty otherwise is ok.

thanks in advance.




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default SUM

You're welcome. Thanks for the feedback!

Biff

"Tufail" wrote in message
...
thank you very much it's working too.

"T. Valko" wrote:

Try this:

=IF(COUNT(A1:B1)<2,"",A1-B1)

Biff

"Tufail" wrote in message
...
hello,
i have some problem which i mentioned is as under:

A1 B1(this cell has vlookup formula) C1(result)
1000 900 =SUM(A1-B1)

#VALUE! error is coming out if B1 is empty otherwise is ok.

thanks in advance.






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



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

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"