Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
Jim Jim is offline
external usenet poster
 
Posts: 615
Default Help with IF formula

Hi everyone. Someone on here always has an answer for my question, so thanks
in advance.

I am running XP Pro SP2, and Office Pro 2003.

Column A is for quantity, and the quantity can be positive or negative.

Column H is for individual pricing, and Column I is for the price extension
(i.e. A*H).

Column I is blank unless there is a number to be displayed.

I have the following formula set up in I4 now:

=IF(A40,A4*H4,"")

which works OK if A4 is a positive number. What should the formula be so it
also works with a negative number? Rember that if A4 is blank, then I4 is
also blank.

In other words, I need an operator that will only work if A4 is not blank.

Thanks for your help.
--
Jim
  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 427
Default Help with IF formula

try
=if(a4<"",a4*h4,"")

Steve

On Wed, 05 Jul 2006 16:39:02 +0100, Jim
wrote:

Hi everyone. Someone on here always has an answer for my question, so
thanks
in advance.

I am running XP Pro SP2, and Office Pro 2003.

Column A is for quantity, and the quantity can be positive or negative..

Column H is for individual pricing, and Column I is for the price
extension
(i.e. A*H).

Column I is blank unless there is a number to be displayed.

I have the following formula set up in I4 now:

=IF(A40,A4*H4,"")

which works OK if A4 is a positive number. What should the formula be so
it
also works with a negative number? Rember that if A4 is blank, then I4 is
also blank.

In other words, I need an operator that will only work if A4 is not
blank.

Thanks for your help.

  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 13
Default Help with IF formula

Hi,

=IF(ISNUMBER(A4);A4*H4);"")

Hans


Jim schrieb:

Hi everyone. Someone on here always has an answer for my question, so thanks
in advance.

I am running XP Pro SP2, and Office Pro 2003.

Column A is for quantity, and the quantity can be positive or negative.

Column H is for individual pricing, and Column I is for the price extension
(i.e. A*H).

Column I is blank unless there is a number to be displayed.

I have the following formula set up in I4 now:

=IF(A40,A4*H4,"")

which works OK if A4 is a positive number. What should the formula be so it
also works with a negative number? Rember that if A4 is blank, then I4 is
also blank.

In other words, I need an operator that will only work if A4 is not blank.

Thanks for your help.
--
Jim


  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default Help with IF formula


how about

=IF(A4="","",A4*H4)

?


--
mattjenkins
------------------------------------------------------------------------
mattjenkins's Profile: http://www.excelforum.com/member.php...o&userid=36049
View this thread: http://www.excelforum.com/showthread...hreadid=558492



  #6   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,886
Default Help with IF formula

Hi Jim

In addition to the other replies you have received, you could just use
the formula without any IF() statement, and use
ToolsOptionsGeneraluntick Zero values
to prevent anything displayed if the result is 0

--
Regards

Roger Govier


"Jim" wrote in message
...
Hi everyone. Someone on here always has an answer for my question, so
thanks
in advance.

I am running XP Pro SP2, and Office Pro 2003.

Column A is for quantity, and the quantity can be positive or
negative.

Column H is for individual pricing, and Column I is for the price
extension
(i.e. A*H).

Column I is blank unless there is a number to be displayed.

I have the following formula set up in I4 now:

=IF(A40,A4*H4,"")

which works OK if A4 is a positive number. What should the formula be
so it
also works with a negative number? Rember that if A4 is blank, then I4
is
also blank.

In other words, I need an operator that will only work if A4 is not
blank.

Thanks for your help.
--
Jim



  #7   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 427
Default Help with IF formula

On Thu, 06 Jul 2006 17:46:27 +0100, Roger Govier
wrote:

Hi Jim

In addition to the other replies you have received, you could just use
the formula without any IF() statement, and use
ToolsOptionsGeneraluntick Zero values
to prevent anything displayed if the result is 0


Too general, imo, but custom format of #;-#; changes 0 to nothing for
specific cells

--
Steve (3)
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
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 12:31 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


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