Struggling with IF formula...is it even the right one for me?

C

Corradus

Let's say that I have a value in one cell, call it X. X is a numerical value
that needs not be touched or modified UNLESS it exceeds another numerical
value in another cell, call it Y. If it DOES exceed Y, then it must be made
to show as EQUAL to the value in Y. If it doesn't, it can show whatever it
is in reality.

How do I sculpt a formula for this?
 
J

joeu2004

Let's say that I have a value in one cell, call it X. X is a numerical value
that needs not be touched or modified UNLESS it exceeds another numerical
value in another cell, call it Y. If it DOES exceed Y, then it must be made
to show as EQUAL to the value in Y. If it doesn't, it can show whatever it
is in reality. How do I sculpt a formula for this?

If X is in A1 and Y is in B1, does the following work for you?

=min(A1, B1)

That formula would be put into a cell other than A1 or B1. But from
your description above, I wonder if you want the following in A1:

=min(X, B1)

where "X" is some expression or constant.
 
S

Stan Brown

Mon, 9 Apr 2007 19:56:00 -0700 from Corradus
Let's say that I have a value in one cell, call it X. X is a numerical value
that needs not be touched or modified UNLESS it exceeds another numerical
value in another cell, call it Y. If it DOES exceed Y, then it must be made
to show as EQUAL to the value in Y. If it doesn't, it can show whatever it
is in reality.

in X1, put =MIN(whatever, Y1)

If "whatever" is smaller, X1 has that value. If "whatever" is larger,
X1 has the value of Y1.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top