Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
azmi
 
Posts: n/a
Default need help in correcting the formula


C2=IF(A2=0,C1+B2,IF(B2=0,C1-A2,IF(A2&B2=,"0","ERROR")

what im trying ti do is to make the formula to show an error message when
(A2 and B2) both cells have been entered with data at the same time. that is
to say i want the results to be generated from either A2 or B2, not both.
when both cells (A2 and B2) are entered with data it should show "ERROR".
this is the best way i could explain. please help.
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

If the cells will contain at least one user entry:

=IF(COUNT(A2:B2)=2,"Error",SUM(C1,B2,-A2))

If you want to generate the error message if neither A2 or B2 are filled
in, or both are filled in:

=IF(MOD(COUNT(A2:B2),2)=0,"Error",SUM(C1,B2,-A2))




In article ,
"azmi" wrote:

C2=IF(A2=0,C1+B2,IF(B2=0,C1-A2,IF(A2&B2=,"0","ERROR")

what im trying ti do is to make the formula to show an error message when
(A2 and B2) both cells have been entered with data at the same time. that is
to say i want the results to be generated from either A2 or B2, not both.
when both cells (A2 and B2) are entered with data it should show "ERROR".
this is the best way i could explain. please 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
referencing named formula using INDIRECT function [email protected] Excel Worksheet Functions 19 May 11th 05 09:48 AM
Simplify formula Luke Excel Worksheet Functions 37 May 6th 05 07:21 AM
put formula results into a different cell if it is empty PutFormula Excel Worksheet Functions 2 February 11th 05 03:31 AM
how do i write a formula and keep in in formula form, so it DOESN. norcalchick2207 Excel Discussion (Misc queries) 2 February 4th 05 08:38 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


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

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"