Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Terence
 
Posts: n/a
Default Urgent help needed: IF function

Dear all,

I need help on the following problem urgently:

In my worsheet:

Cell(K,38) = 2
Cell(C,107) = 0.8
Cell(C,108) = 280000

In Cell(K,108), I have a formula:
K38*$C108*$C$107

The the value of Cell(K,108) is 448000

Now I have the change the formula on Cell(K,108). It
should reference to it's cell to the left, i.e. Cell
(J,108). If Cell(J,108)=0, then I have to multiply the
original formula by 0.5, i.e. (K38*$C108*$C$107) * 0.5,
otherwise, it keeps the original formula K38*$C108*$C$107.
But the cells doesn't come out with the result, it
displays the formula instead: "=IF
(J108=0,"K38*$C108*$C$107","0.5*(K38*$C108*$C$107) ")"

Why does this happen? Can anyone help? Thanks in advance!!

Terence
  #2   Report Post  
tjtjjtjt
 
Posts: n/a
Default

Try Pressing Ctrl+` (the button usually directly below Esc)--you may be
displaying Formulas instead of Formula results. That should switch it back to
showing formula results.

But, if I read your post correctly, it sounds like you are really looking
for this:

=IF(J108=0,(K38*$C108*$C$107)*0.5,K38*$C108*$C$107 )

If all those quotation marks are really in your formula, that is probably
the problem. Anything displayed within " " displays literally in the cell.

tj


"Terence" wrote:

Dear all,

I need help on the following problem urgently:

In my worsheet:

Cell(K,38) = 2
Cell(C,107) = 0.8
Cell(C,108) = 280000

In Cell(K,108), I have a formula:
K38*$C108*$C$107

The the value of Cell(K,108) is 448000

Now I have the change the formula on Cell(K,108). It
should reference to it's cell to the left, i.e. Cell
(J,108). If Cell(J,108)=0, then I have to multiply the
original formula by 0.5, i.e. (K38*$C108*$C$107) * 0.5,
otherwise, it keeps the original formula K38*$C108*$C$107.
But the cells doesn't come out with the result, it
displays the formula instead: "=IF
(J108=0,"K38*$C108*$C$107","0.5*(K38*$C108*$C$107) ")"

Why does this happen? Can anyone help? Thanks in advance!!

Terence

  #3   Report Post  
Myrna Larson
 
Posts: n/a
Default

Be sure the cell that is misbehaving is not formatted as text. If it is,
Edit/Clear/Formats. You may also need to re-enter the formula.

On Mon, 15 Nov 2004 18:04:17 -0800, "Terence"
wrote:

Dear all,

I need help on the following problem urgently:

In my worsheet:

Cell(K,38) = 2
Cell(C,107) = 0.8
Cell(C,108) = 280000

In Cell(K,108), I have a formula:
K38*$C108*$C$107

The the value of Cell(K,108) is 448000

Now I have the change the formula on Cell(K,108). It
should reference to it's cell to the left, i.e. Cell
(J,108). If Cell(J,108)=0, then I have to multiply the
original formula by 0.5, i.e. (K38*$C108*$C$107) * 0.5,
otherwise, it keeps the original formula K38*$C108*$C$107.
But the cells doesn't come out with the result, it
displays the formula instead: "=IF
(J108=0,"K38*$C108*$C$107","0.5*(K38*$C108*$C$107 ) ")"

Why does this happen? Can anyone help? Thanks in advance!!

Terence


  #4   Report Post  
Max
 
Posts: n/a
Default

But the cells doesn't come out with the result, it
displays the formula instead: "=IF
(J108=0,"K38*$C108*$C$107","0.5*(K38*$C108*$C$107) ")"


One guess is that K108 is formatted as Text

Try this:
Select K108
click Format Cells General OK
Then click inside the formula bar and press ENTER
(to re-enter the formula)

K108 should compute properly now

But .. if I've read your intent correctly, perhaps
you might also want to change the formula in K108 to:
=IF(J108=0,K38*$C108*$C$107*0.5,K38*$C108*$C$107)

(with the value_if_TRUE/FALSE switched around)

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Terence" wrote in message
...
Dear all,

I need help on the following problem urgently:

In my worsheet:

Cell(K,38) = 2
Cell(C,107) = 0.8
Cell(C,108) = 280000

In Cell(K,108), I have a formula:
K38*$C108*$C$107

The the value of Cell(K,108) is 448000

Now I have the change the formula on Cell(K,108). It
should reference to it's cell to the left, i.e. Cell
(J,108). If Cell(J,108)=0, then I have to multiply the
original formula by 0.5, i.e. (K38*$C108*$C$107) * 0.5,
otherwise, it keeps the original formula K38*$C108*$C$107.
But the cells doesn't come out with the result, it
displays the formula instead: "=IF
(J108=0,"K38*$C108*$C$107","0.5*(K38*$C108*$C$107) ")"

Why does this happen? Can anyone help? Thanks in advance!!

Terence



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
Averaging function Sarah Excel Discussion (Misc queries) 0 January 18th 05 04:09 PM
Function in XL or in VBA for XL that pulls numeric digits from a t Nate Oliver Excel Discussion (Misc queries) 0 December 14th 04 04:57 PM
I cant use englisch function names in a swedich version of excel PE Excel Discussion (Misc queries) 2 December 7th 04 01:00 AM
change function variable prompts?? thinkingfield Excel Worksheet Functions 1 November 8th 04 04:01 PM
Counting Function Dilemma Simon Lloyd Excel Worksheet Functions 0 November 8th 04 03:13 PM


All times are GMT +1. The time now is 12:06 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"