Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default CALCULATION OF A CELL THAT CONTAINS A FORMULA

I am trying to simply divide one cell by another. However one of the cells
(A1) contains a formula from another calculation, and no matter what I do it
returns a 0 result.
Eg. =A1/A2 but A1 contains the formula =COUNTIF(F2:F1233,"name") and
a result of 16
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default CALCULATION OF A CELL THAT CONTAINS A FORMULA

How are the cells formatted? What is the value in A2?

If A1/A2 < 0 and cell is formatted as number with 0 decimal places, then you
will 0 as a result

Having a formula in A1 has no impact on the calculation

"Jazzman10" wrote:

I am trying to simply divide one cell by another. However one of the cells
(A1) contains a formula from another calculation, and no matter what I do it
returns a 0 result.
Eg. =A1/A2 but A1 contains the formula =COUNTIF(F2:F1233,"name") and
a result of 16

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default CALCULATION OF A CELL THAT CONTAINS A FORMULA

The cells are formatted 'General', and the value in A2 is 2.

The reason I thought the formula may be causing the problem is I've tried
this on other cells without a formula and it works fine.

"Toppers" wrote:

How are the cells formatted? What is the value in A2?

If A1/A2 < 0 and cell is formatted as number with 0 decimal places, then you
will 0 as a result

Having a formula in A1 has no impact on the calculation

"Jazzman10" wrote:

I am trying to simply divide one cell by another. However one of the cells
(A1) contains a formula from another calculation, and no matter what I do it
returns a 0 result.
Eg. =A1/A2 but A1 contains the formula =COUNTIF(F2:F1233,"name") and
a result of 16

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 860
Default CALCULATION OF A CELL THAT CONTAINS A FORMULA

Hi Jazzman,

Try =VALUE(A1)/A2

HTH
Martin


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default CALCULATION OF A CELL THAT CONTAINS A FORMULA

Using your formula in A1, I have 16 in A1, A2=2 and in C1 (=A1/A2) I have the
expected result of 8.

Changing A1 by adding "name" into column F still gives the expected result.
I can only get 0 if column F is empty.

No more ideas!

Post w/book to toppers<atjohntopley.fsnet.co.uk and I'll have a look.

"Jazzman10" wrote:

The cells are formatted 'General', and the value in A2 is 2.

The reason I thought the formula may be causing the problem is I've tried
this on other cells without a formula and it works fine.

"Toppers" wrote:

How are the cells formatted? What is the value in A2?

If A1/A2 < 0 and cell is formatted as number with 0 decimal places, then you
will 0 as a result

Having a formula in A1 has no impact on the calculation

"Jazzman10" wrote:

I am trying to simply divide one cell by another. However one of the cells
(A1) contains a formula from another calculation, and no matter what I do it
returns a 0 result.
Eg. =A1/A2 but A1 contains the formula =COUNTIF(F2:F1233,"name") and
a result of 16



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default CALCULATION OF A CELL THAT CONTAINS A FORMULA

Thank you for both of your help. I've managed to solve it. The example I
gave of A1 and A2 was just that an example. The actual cells I was using
were C577, E577 with the result in F577. Because the formula referred to
F2:F1233 this was where the problem was occurring. I'll make sure if I have
a problem again that I use the actual cells. Thanks again.

"Toppers" wrote:

Using your formula in A1, I have 16 in A1, A2=2 and in C1 (=A1/A2) I have the
expected result of 8.

Changing A1 by adding "name" into column F still gives the expected result.
I can only get 0 if column F is empty.

No more ideas!

Post w/book to toppers<atjohntopley.fsnet.co.uk and I'll have a look.

"Jazzman10" wrote:

The cells are formatted 'General', and the value in A2 is 2.

The reason I thought the formula may be causing the problem is I've tried
this on other cells without a formula and it works fine.

"Toppers" wrote:

How are the cells formatted? What is the value in A2?

If A1/A2 < 0 and cell is formatted as number with 0 decimal places, then you
will 0 as a result

Having a formula in A1 has no impact on the calculation

"Jazzman10" wrote:

I am trying to simply divide one cell by another. However one of the cells
(A1) contains a formula from another calculation, and no matter what I do it
returns a 0 result.
Eg. =A1/A2 but A1 contains the formula =COUNTIF(F2:F1233,"name") and
a result of 16

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
Is it possible? DakotaNJ Excel Worksheet Functions 25 September 18th 06 09:30 PM
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
Urgent date/scheduling calc needed jct Excel Worksheet Functions 3 February 24th 06 01:36 AM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 12:31 AM


All times are GMT +1. The time now is 06:10 AM.

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"