Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Thought this was a simple formula

This is the first time I've been asked to do a formula in over a year and
since we got Vista. I have the following formula:

=IF(AND(F9=1, P9=3.5),0.654,0)*M9

In my spreadsheet F9 is 1 and P9 is 3.5, so I want it to multiply .654 by
M9. However, it is giving 0, which would be the answer if F9 was not 1 or P9
was not 3.5. I cannot see anything wrong in the formula. What am I missing?
Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 694
Default Thought this was a simple formula

Hi
Try it this way =IF(AND(F9=1,P9=3.5),0.654*M9,0)
Best regards
John
"Ann R." <Ann wrote in message
...
This is the first time I've been asked to do a formula in over a year and
since we got Vista. I have the following formula:

=IF(AND(F9=1, P9=3.5),0.654,0)*M9

In my spreadsheet F9 is 1 and P9 is 3.5, so I want it to multiply .654 by
M9. However, it is giving 0, which would be the answer if F9 was not 1 or
P9
was not 3.5. I cannot see anything wrong in the formula. What am I
missing?
Thanks in advance.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Thought this was a simple formula

Perhaps there are decimal places which you aren't displaying in F9 or P9.?
You could calculate =F9-1 and =P9-3.5, and you could also see whether =F9=1
gives TRUE or FALSE, similarly for =P9=3.5
Are you also sure that M9 is non-zero?
--
David Biddulph

"Ann R." <Ann wrote in message
...
This is the first time I've been asked to do a formula in over a year and
since we got Vista. I have the following formula:

=IF(AND(F9=1, P9=3.5),0.654,0)*M9

In my spreadsheet F9 is 1 and P9 is 3.5, so I want it to multiply .654 by
M9. However, it is giving 0, which would be the answer if F9 was not 1 or
P9
was not 3.5. I cannot see anything wrong in the formula. What am I
missing?
Thanks in advance.



  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Thought this was a simple formula

Possibly rounding issues, eg P9's actual value might be 3.500001?
One thought:
=IF(AND(F9=1, ROUND(P9,1)=3.5),0.654,0)*M9
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,500 Files:370 Subscribers:66
xdemechanik
---
"Ann R." wrote:
This is the first time I've been asked to do a formula in over a year and
since we got Vista. I have the following formula:

=IF(AND(F9=1, P9=3.5),0.654,0)*M9

In my spreadsheet F9 is 1 and P9 is 3.5, so I want it to multiply .654 by
M9. However, it is giving 0, which would be the answer if F9 was not 1 or P9
was not 3.5. I cannot see anything wrong in the formula. What am I missing?
Thanks in advance.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 144
Default Thought this was a simple formula

your formula is fine.
Is F9, P9 and M9 really contain numbers and not text look like numbers?

try retype the 1, 3.5 and the number in M9 and fomat cell as number
or try =ISTEXT(F9) and other cell reference in an empty cell to test,
TRUE will be retrun if it is text
FALSE will be return if is number

HTH
--
Your feedback is very much appreciate, pls click on the Yes button below if
this posting is helpful.

Thank You

cheers, francis









"Ann R." wrote:

This is the first time I've been asked to do a formula in over a year and
since we got Vista. I have the following formula:

=IF(AND(F9=1, P9=3.5),0.654,0)*M9

In my spreadsheet F9 is 1 and P9 is 3.5, so I want it to multiply .654 by
M9. However, it is giving 0, which would be the answer if F9 was not 1 or P9
was not 3.5. I cannot see anything wrong in the formula. What am I missing?
Thanks in advance.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Thought this was a simple formula

What is cell M9? If this is empty then answer will be 0....

"Ann R." <Ann wrote in message
...
This is the first time I've been asked to do a formula in over a year and
since we got Vista. I have the following formula:

=IF(AND(F9=1, P9=3.5),0.654,0)*M9

In my spreadsheet F9 is 1 and P9 is 3.5, so I want it to multiply .654 by
M9. However, it is giving 0, which would be the answer if F9 was not 1 or
P9
was not 3.5. I cannot see anything wrong in the formula. What am I
missing?
Thanks in advance.


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Thought this was a simple formula

Thanks for all the suggestions. I found that the below works fine IF I put
an actual number in M9, however, I currently have a formula (K9*8) in that
cell. I can go ahead and put numbers, but the point was to save having to
multiply all those different number by 8.

Does this give you all any new ideas?

"Ann R." wrote:

This is the first time I've been asked to do a formula in over a year and
since we got Vista. I have the following formula:

=IF(AND(F9=1, P9=3.5),0.654,0)*M9

In my spreadsheet F9 is 1 and P9 is 3.5, so I want it to multiply .654 by
M9. However, it is giving 0, which would be the answer if F9 was not 1 or P9
was not 3.5. I cannot see anything wrong in the formula. What am I missing?
Thanks in advance.

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default Thought this was a simple formula

=IF(AND(F9=1, P9=3.5),0.654,0)*K9*8 would do the same it seems...

So it should depend on what K9 has.

"Ann R." wrote:

Thanks for all the suggestions. I found that the below works fine IF I put
an actual number in M9, however, I currently have a formula (K9*8) in that
cell. I can go ahead and put numbers, but the point was to save having to
multiply all those different number by 8.

Does this give you all any new ideas?

"Ann R." wrote:

This is the first time I've been asked to do a formula in over a year and
since we got Vista. I have the following formula:

=IF(AND(F9=1, P9=3.5),0.654,0)*M9

In my spreadsheet F9 is 1 and P9 is 3.5, so I want it to multiply .654 by
M9. However, it is giving 0, which would be the answer if F9 was not 1 or P9
was not 3.5. I cannot see anything wrong in the formula. What am I missing?
Thanks in advance.

  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,059
Default Thought this was a simple formula

On Jan 23, 11:33 am, Ann R. wrote:
I found that the below works fine IF I put an actual
number in M9, however, I currently have a formula
(K9*8) in that cell.
[....]
Does this give you all any new ideas?


There is nothing wrong with your original formulation. The problem is
more like due to the actual contents of the cells involved (F9, P9 and/
or M9).

Max's comment (rounding issue) seems closest to the explantion. More
generally, what you see displayed in the cell might be a rounded
representation of the actual value. However, P9 might not be the only
culprit here; and rounding to one decimal place might not be the right
solution for your application.

But you have not provided sufficient information. For example, what
is in M9? What makes you think that M9*0.654 should not be zero,
especially when rounded according to the General format?

My suggestion: format F9, P9 and M9 (maybe even K9) as Scientific
with 14 decimal places. Post those values here. You might not
understand the format, but some of us will.

Also, it might be helpful if you posted the exact formula in M9. Cut-
and-paste from the "fx" field below the toolbars.


----- original posting -----


On Jan 23, 11:33*am, Ann R. wrote:
Thanks for all the suggestions. *I found that the below works fine IF I put
an actual number in M9, however, I currently have a formula (K9*8) in that
cell. *I can go ahead and put numbers, but the point was to save having to
multiply all those different number by 8.

Does this give you all any new ideas?



"Ann R." wrote:
This is the first time I've been asked to do a formula in over a year and
since we got Vista. *I have the following formula:


=IF(AND(F9=1, P9=3.5),0.654,0)*M9


In my spreadsheet F9 is 1 and P9 is 3.5, so I want it to multiply .654 by
M9. *However, it is giving 0, which would be the answer if F9 was not 1 or P9
was not 3.5. *I cannot see anything wrong in the formula. *What am I missing?
*Thanks in advance.

  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 144
Default Thought this was a simple formula

your first formula is working correctly, it is not necessary to dissect.
since your cells are linked to others, the source cell need to have a number
in it, an example will be K9 need to have a number. IF K9 is also a
formula, you will have to find which cell make up the formula and that there
is a number in it...all the way backward to the first cell that you input a
number.

Hope I have explained the situation.
--
Your feedback is very much appreciate, pls click on the Yes button below if
this posting is helpful.

Thank You

cheers, francis









"Ann R." wrote:

Thanks for all the suggestions. I found that the below works fine IF I put
an actual number in M9, however, I currently have a formula (K9*8) in that
cell. I can go ahead and put numbers, but the point was to save having to
multiply all those different number by 8.

Does this give you all any new ideas?

"Ann R." wrote:

This is the first time I've been asked to do a formula in over a year and
since we got Vista. I have the following formula:

=IF(AND(F9=1, P9=3.5),0.654,0)*M9

In my spreadsheet F9 is 1 and P9 is 3.5, so I want it to multiply .654 by
M9. However, it is giving 0, which would be the answer if F9 was not 1 or P9
was not 3.5. I cannot see anything wrong in the formula. What am I missing?
Thanks in advance.



  #11   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Thought this was a simple formula

On Fri, 23 Jan 2009 10:27:02 -0800, Ann R. <Ann
wrote:

This is the first time I've been asked to do a formula in over a year and
since we got Vista. I have the following formula:

=IF(AND(F9=1, P9=3.5),0.654,0)*M9

In my spreadsheet F9 is 1 and P9 is 3.5, so I want it to multiply .654 by
M9. However, it is giving 0, which would be the answer if F9 was not 1 or P9
was not 3.5. I cannot see anything wrong in the formula. What am I missing?
Thanks in advance.


Are the values in F9 and P9 derived from formulas, or are they directly
entered? If the former then try this:

=IF(AND(ROUND(F9,0)=1, ROUND(P9,2)=3.5),0.654,0)*M9
--ron
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
Big Trouble with what I thought would be a simple Excel Formula Flip@work New Users to Excel 7 October 4th 08 09:06 PM
IF formula-simple question; simple operator Rich D Excel Discussion (Misc queries) 4 December 6th 07 03:36 PM
Need Help with what i thought was a SIMPLE Macro sharon Excel Worksheet Functions 9 October 1st 07 05:11 AM
Simple problem, simple formula, no FUNCTION ! Ron@Buy Excel Worksheet Functions 6 September 28th 07 04:51 PM
Simple Formula (I thought) csandi Excel Worksheet Functions 3 November 14th 05 08:47 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"