Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
anagaraj1
 
Posts: n/a
Default Programming a simple formula


Hi all,

I am trying to program a simple formula where I can input a number in
one cell, multiply it by a number in another cell in the next column,
multiply these 2 numbers by 1.5, and then display the product in the
third column.

My problem is that if I leave the cells in the first two columns blank,
the number 1.5 is displayed in the third column. I want the third
column to be blank if I leave the first two columns blank. Do you know
what I might be doing wrong?


Thanks,
Arun


--
anagaraj1
------------------------------------------------------------------------
anagaraj1's Profile: http://www.excelforum.com/member.php...o&userid=25827
View this thread: http://www.excelforum.com/showthread...hreadid=392891

  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

=IF(COUNT(A1:B1)0,A1*B1*1.5,"")

This actually leaves a null string ("") as the result, rather than being
truly blank, but you can't have a cell both blank and containing a
formula.


In article ,
anagaraj1
wrote:

Hi all,

I am trying to program a simple formula where I can input a number in
one cell, multiply it by a number in another cell in the next column,
multiply these 2 numbers by 1.5, and then display the product in the
third column.

My problem is that if I leave the cells in the first two columns blank,
the number 1.5 is displayed in the third column. I want the third
column to be blank if I leave the first two columns blank. Do you know
what I might be doing wrong?


Thanks,
Arun

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
simple interest formula in excel V NARENDRAN Excel Discussion (Misc queries) 1 August 3rd 05 12:13 PM
Help - Simple Formula ! Girish Punjabi Excel Discussion (Misc queries) 3 July 16th 05 05:17 AM
Simple formula help zero Excel Worksheet Functions 2 June 22nd 05 01:02 AM
help with simple formula Shooter Excel Worksheet Functions 1 June 19th 05 01:14 AM
Excel Miscalculates simple formula..Help!! Dave Excel Worksheet Functions 1 January 12th 05 04:30 PM


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