Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
CP
 
Posts: n/a
Default IF Statements for 3 cells

Hi,

I have 3 cells (B5, C5 and/or D5) that need to meet a
certain criteria without going over the maximum in any
combination of the 3 cells. The maximum is $400. Any of
these cells can be equal to $400, but if one or two gets
to $400 first, how do I make the ones that are less than
$400 say zero?

(I have a small file to send if needed)

Thanks, CP
  #2   Report Post  
bj
 
Posts: n/a
Default

I assume you have existing equations in these cells
eq(b5),eq(c5),eq(d5)
It is real easy to get into circular references with this type of logic.
Try
in b5
=if(or(eq(c5)=400,eq(d5)=400),0,eq(b5))
in c5
=if(or(eq(b5)=400,eq(d5)=400),0,eq(c5))
in d5
=if(or(eq(c5)=400,eq(b5)=400),0,eq(d5))
"CP" wrote:

Hi,

I have 3 cells (B5, C5 and/or D5) that need to meet a
certain criteria without going over the maximum in any
combination of the 3 cells. The maximum is $400. Any of
these cells can be equal to $400, but if one or two gets
to $400 first, how do I make the ones that are less than
$400 say zero?

(I have a small file to send if needed)

Thanks, CP

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 05:55 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"