Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Need help Coding my cells correctly-3 comparisons to be made

Greetings,
I only want to utilize four cells for this operation (in a single line in
this case line 4), I will want to use it throughout the worksheet but I'm
trying not to sprawl into any more cell usage.
Hers's the idea...to get these four cells to accomodate the following, I
keep having problems with my second condition being met and the cells staying
blank until some data is entered. It's not neccessary but it would be helpful
if the cells appear blank until some data has been actually entered and not
like its trying to compute the blank cells.

First a comparsion would be made

If C4 = D4 then cell E4 displays "Equal" and cell F4 displays "Amount"

If this condition does not occur then 2 more comparisons will occur...

If C4 < D4 then D4-C4 and the result goes into cell E4 and cell F4 is blank

Else, C4 D4 then C4-D4 and result goes into cell F4 and cell E4 is blank

Thanks
--
jgbadingerjr
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Need help Coding my cells correctly-3 comparisons to be made

Enter this in E4:
=IF(C4=D4,"Equal",IF(C4<D4,D4-C4,""))

Enter this in F4:
=IF(C4=D4,"Amount",IF(C4D4,C4-D4,""))

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"jgbadingerjr" wrote in message
...
Greetings,
I only want to utilize four cells for this operation (in a single line in
this case line 4), I will want to use it throughout the worksheet but I'm
trying not to sprawl into any more cell usage.
Hers's the idea...to get these four cells to accomodate the following, I
keep having problems with my second condition being met and the cells

staying
blank until some data is entered. It's not neccessary but it would be

helpful
if the cells appear blank until some data has been actually entered and

not
like its trying to compute the blank cells.

First a comparsion would be made

If C4 = D4 then cell E4 displays "Equal" and cell F4 displays "Amount"

If this condition does not occur then 2 more comparisons will occur...

If C4 < D4 then D4-C4 and the result goes into cell E4 and cell F4 is

blank

Else, C4 D4 then C4-D4 and result goes into cell F4 and cell E4 is blank

Thanks
--
jgbadingerjr


  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Need help Coding my cells correctly-3 comparisons to be made

One way ..

In E4:
=IF(COUNTBLANK(C4:D4)=2,"",IF(C4<D4,D4-C4,IF(C4=D4,"Equal","")))

In F4:
=IF(COUNTBLANK(C4:D4)=2,"",IF(C4D4,C4-D4,IF(C4=D4,"Amount","")))

Select E4:F4, copy down
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"jgbadingerjr" wrote:
Greetings,
I only want to utilize four cells for this operation (in a single line in
this case line 4), I will want to use it throughout the worksheet but I'm
trying not to sprawl into any more cell usage.
Hers's the idea...to get these four cells to accomodate the following, I
keep having problems with my second condition being met and the cells staying
blank until some data is entered. It's not neccessary but it would be helpful
if the cells appear blank until some data has been actually entered and not
like its trying to compute the blank cells.

First a comparsion would be made

If C4 = D4 then cell E4 displays "Equal" and cell F4 displays "Amount"

If this condition does not occur then 2 more comparisons will occur...

If C4 < D4 then D4-C4 and the result goes into cell E4 and cell F4 is blank

Else, C4 D4 then C4-D4 and result goes into cell F4 and cell E4 is blank

Thanks
--
jgbadingerjr

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Need help Coding my cells correctly-3 comparisons to be made

thanx big help ^^
--
jgbadingerjr


"jgbadingerjr" wrote:

Greetings,
I only want to utilize four cells for this operation (in a single line in
this case line 4), I will want to use it throughout the worksheet but I'm
trying not to sprawl into any more cell usage.
Hers's the idea...to get these four cells to accomodate the following, I
keep having problems with my second condition being met and the cells staying
blank until some data is entered. It's not neccessary but it would be helpful
if the cells appear blank until some data has been actually entered and not
like its trying to compute the blank cells.

First a comparsion would be made

If C4 = D4 then cell E4 displays "Equal" and cell F4 displays "Amount"

If this condition does not occur then 2 more comparisons will occur...

If C4 < D4 then D4-C4 and the result goes into cell E4 and cell F4 is blank

Else, C4 D4 then C4-D4 and result goes into cell F4 and cell E4 is blank

Thanks
--
jgbadingerjr

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
Color coding cells Angela Excel Discussion (Misc queries) 2 September 27th 06 09:20 PM
Color Coding Cells c_shema Excel Worksheet Functions 1 February 5th 06 02:50 PM
Can an array be made of discontinuous cells of the same row? vanillawand Excel Discussion (Misc queries) 0 February 3rd 06 11:20 AM
Will excel add cells using colour coding eg Add all red cells Wildwoody Excel Discussion (Misc queries) 4 October 21st 05 01:02 AM
Color coding cells in Excel jdiedrick Excel Discussion (Misc queries) 3 September 12th 05 11:39 PM


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