ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Formula gives unwanted result (https://www.excelbanter.com/excel-worksheet-functions/178852-formula-gives-unwanted-result.html)

jeannie v

Formula gives unwanted result
 
Hi Experts:

I've poured over the other questions and responses on this site and either
missed my situation or it's not there...I need help with what should be so
simple...

Example: B13 is 20...I want C13 to give me the result of 3 of B13 is
greater than 17....I then need the formula to say...If B13 is not greater
than 17, enter 0.

This formula that I've started returns the result of 1 not 3...I then need
to expand the formula to enter zero if B13 is not greater than 17. The
result would be returned in C13.

=SUM($B1317)

I know this is really simple, so be kind....my brain is fried....

Thank you so much for all your expertise.....
--
jeannie v

PCLIVE

Formula gives unwanted result
 
Maybe this is what you want:

=IF(B1317,3,0)

HTH,
Paul

--

"jeannie v" wrote in message
...
Hi Experts:

I've poured over the other questions and responses on this site and either
missed my situation or it's not there...I need help with what should be so
simple...

Example: B13 is 20...I want C13 to give me the result of 3 of B13 is
greater than 17....I then need the formula to say...If B13 is not greater
than 17, enter 0.

This formula that I've started returns the result of 1 not 3...I then need
to expand the formula to enter zero if B13 is not greater than 17. The
result would be returned in C13.

=SUM($B1317)

I know this is really simple, so be kind....my brain is fried....

Thank you so much for all your expertise.....
--
jeannie v




Ron Rosenfeld

Formula gives unwanted result
 
On Wed, 5 Mar 2008 07:30:01 -0800, jeannie v
wrote:

Hi Experts:

I've poured over the other questions and responses on this site and either
missed my situation or it's not there...I need help with what should be so
simple...

Example: B13 is 20...I want C13 to give me the result of 3 of B13 is
greater than 17....I then need the formula to say...If B13 is not greater
than 17, enter 0.

This formula that I've started returns the result of 1 not 3...I then need
to expand the formula to enter zero if B13 is not greater than 17. The
result would be returned in C13.

=SUM($B1317)

I know this is really simple, so be kind....my brain is fried....

Thank you so much for all your expertise.....


Look closely at your formula:

B1317 is a Boolean expression that will return TRUE or FALSE depending.

Converting it to a numeric value, as your are doing using the SUM function,
converts TRUE to 1 and FALSE to 0.

So something like:

C13: =IF(B1320,"undefined",IF(B13=20,3,IF(B1317,"unde fined","ENTER 0")))

--ron

RagDyeR

Formula gives unwanted result
 
You didn't say what to do if B13 EQUALS 17.

This returns 3 if B13 is greater then 17
AND
0 if B13 is less then OR equal to 17:

=(B1317)*3

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"jeannie v" wrote in message
...
Hi Experts:

I've poured over the other questions and responses on this site and either
missed my situation or it's not there...I need help with what should be so
simple...

Example: B13 is 20...I want C13 to give me the result of 3 of B13 is
greater than 17....I then need the formula to say...If B13 is not greater
than 17, enter 0.

This formula that I've started returns the result of 1 not 3...I then need
to expand the formula to enter zero if B13 is not greater than 17. The
result would be returned in C13.

=SUM($B1317)

I know this is really simple, so be kind....my brain is fried....

Thank you so much for all your expertise.....
--
jeannie v



jeannie v

Formula gives unwanted result
 
Hi PCLIVE:

OMG...this wa so easy.....it works...I've wasted so much time trying to
figure it out...I can't thank you enough for helping me!!!!!
--
jeannie v


"PCLIVE" wrote:

Maybe this is what you want:

=IF(B1317,3,0)

HTH,
Paul

--

"jeannie v" wrote in message
...
Hi Experts:

I've poured over the other questions and responses on this site and either
missed my situation or it's not there...I need help with what should be so
simple...

Example: B13 is 20...I want C13 to give me the result of 3 of B13 is
greater than 17....I then need the formula to say...If B13 is not greater
than 17, enter 0.

This formula that I've started returns the result of 1 not 3...I then need
to expand the formula to enter zero if B13 is not greater than 17. The
result would be returned in C13.

=SUM($B1317)

I know this is really simple, so be kind....my brain is fried....

Thank you so much for all your expertise.....
--
jeannie v





jeannie v

Formula gives unwanted result
 
Hi Paul:

OK...now if the 3 is variable, how would I replace the 3 so that whatever
the result is it will be returned?

Thank you for all your help,
--
jeannie v


"PCLIVE" wrote:

Maybe this is what you want:

=IF(B1317,3,0)

HTH,
Paul

--

"jeannie v" wrote in message
...
Hi Experts:

I've poured over the other questions and responses on this site and either
missed my situation or it's not there...I need help with what should be so
simple...

Example: B13 is 20...I want C13 to give me the result of 3 of B13 is
greater than 17....I then need the formula to say...If B13 is not greater
than 17, enter 0.

This formula that I've started returns the result of 1 not 3...I then need
to expand the formula to enter zero if B13 is not greater than 17. The
result would be returned in C13.

=SUM($B1317)

I know this is really simple, so be kind....my brain is fried....

Thank you so much for all your expertise.....
--
jeannie v





jeannie v

Formula gives unwanted result
 
Hi Ron:

Thank you for your answer and it so appreciated!!!! I've tried RagDyer's
answer and it works perfectly.....I will use your formula for another
application that I'm working on...so I can't thank you enough!
--
jeannie v


"Ron Rosenfeld" wrote:

On Wed, 5 Mar 2008 07:30:01 -0800, jeannie v
wrote:

Hi Experts:

I've poured over the other questions and responses on this site and either
missed my situation or it's not there...I need help with what should be so
simple...

Example: B13 is 20...I want C13 to give me the result of 3 of B13 is
greater than 17....I then need the formula to say...If B13 is not greater
than 17, enter 0.

This formula that I've started returns the result of 1 not 3...I then need
to expand the formula to enter zero if B13 is not greater than 17. The
result would be returned in C13.

=SUM($B1317)

I know this is really simple, so be kind....my brain is fried....

Thank you so much for all your expertise.....


Look closely at your formula:

B1317 is a Boolean expression that will return TRUE or FALSE depending.

Converting it to a numeric value, as your are doing using the SUM function,
converts TRUE to 1 and FALSE to 0.

So something like:

C13: =IF(B1320,"undefined",IF(B13=20,3,IF(B1317,"unde fined","ENTER 0")))

--ron


PCLIVE

Formula gives unwanted result
 
Assuming your 3 (variable) will be in A1:

=IF(B1317,A1,0)

Adjust "A1" to the cell containing 3 or your variable. I'm not sure if that
is what you were saying. If not, please elaborate.

Regards,
Paul


--

"jeannie v" wrote in message
...
Hi Paul:

OK...now if the 3 is variable, how would I replace the 3 so that whatever
the result is it will be returned?

Thank you for all your help,
--
jeannie v


"PCLIVE" wrote:

Maybe this is what you want:

=IF(B1317,3,0)

HTH,
Paul

--

"jeannie v" wrote in message
...
Hi Experts:

I've poured over the other questions and responses on this site and
either
missed my situation or it's not there...I need help with what should be
so
simple...

Example: B13 is 20...I want C13 to give me the result of 3 of B13 is
greater than 17....I then need the formula to say...If B13 is not
greater
than 17, enter 0.

This formula that I've started returns the result of 1 not 3...I then
need
to expand the formula to enter zero if B13 is not greater than 17. The
result would be returned in C13.

=SUM($B1317)

I know this is really simple, so be kind....my brain is fried....

Thank you so much for all your expertise.....
--
jeannie v







jeannie v

Formula gives unwanted result
 
HiRagDyeR:

Well...you have given me the formula that works for the entire worksheet and
I am so appreciative. Thank you...you have relieved me of that stress you
experience when you keep trying different methods over and over and just get
so frustrated.

I thank you for your expertise!
--
jeannie v


"RagDyeR" wrote:

You didn't say what to do if B13 EQUALS 17.

This returns 3 if B13 is greater then 17
AND
0 if B13 is less then OR equal to 17:

=(B1317)*3

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"jeannie v" wrote in message
...
Hi Experts:

I've poured over the other questions and responses on this site and either
missed my situation or it's not there...I need help with what should be so
simple...

Example: B13 is 20...I want C13 to give me the result of 3 of B13 is
greater than 17....I then need the formula to say...If B13 is not greater
than 17, enter 0.

This formula that I've started returns the result of 1 not 3...I then need
to expand the formula to enter zero if B13 is not greater than 17. The
result would be returned in C13.

=SUM($B1317)

I know this is really simple, so be kind....my brain is fried....

Thank you so much for all your expertise.....
--
jeannie v




RagDyeR

Formula gives unwanted result
 
You can put your variable value in a particular cell, and have the formula
refer to that cell so that all you need to do is change the value in that
cell.

Say you use A1 for the value, try this:

=(B1317)*A1
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"jeannie v" wrote in message
...
Hi Paul:

OK...now if the 3 is variable, how would I replace the 3 so that whatever
the result is it will be returned?

Thank you for all your help,
--
jeannie v


"PCLIVE" wrote:

Maybe this is what you want:

=IF(B1317,3,0)

HTH,
Paul

--

"jeannie v" wrote in message
...
Hi Experts:

I've poured over the other questions and responses on this site and
either
missed my situation or it's not there...I need help with what should be
so
simple...

Example: B13 is 20...I want C13 to give me the result of 3 of B13 is
greater than 17....I then need the formula to say...If B13 is not
greater
than 17, enter 0.

This formula that I've started returns the result of 1 not 3...I then
need
to expand the formula to enter zero if B13 is not greater than 17. The
result would be returned in C13.

=SUM($B1317)

I know this is really simple, so be kind....my brain is fried....

Thank you so much for all your expertise.....
--
jeannie v







jeannie v

Formula gives unwanted result
 
Hi Paul:

Thank you for all your help.....I used RagDyeR's formula and it works....I
will also keep your's of file for use in the future...

You have been so kind and helpful and I appreciate it!
--
jeannie v


"PCLIVE" wrote:

Assuming your 3 (variable) will be in A1:

=IF(B1317,A1,0)

Adjust "A1" to the cell containing 3 or your variable. I'm not sure if that
is what you were saying. If not, please elaborate.

Regards,
Paul


--

"jeannie v" wrote in message
...
Hi Paul:

OK...now if the 3 is variable, how would I replace the 3 so that whatever
the result is it will be returned?

Thank you for all your help,
--
jeannie v


"PCLIVE" wrote:

Maybe this is what you want:

=IF(B1317,3,0)

HTH,
Paul

--

"jeannie v" wrote in message
...
Hi Experts:

I've poured over the other questions and responses on this site and
either
missed my situation or it's not there...I need help with what should be
so
simple...

Example: B13 is 20...I want C13 to give me the result of 3 of B13 is
greater than 17....I then need the formula to say...If B13 is not
greater
than 17, enter 0.

This formula that I've started returns the result of 1 not 3...I then
need
to expand the formula to enter zero if B13 is not greater than 17. The
result would be returned in C13.

=SUM($B1317)

I know this is really simple, so be kind....my brain is fried....

Thank you so much for all your expertise.....
--
jeannie v








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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com