A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

IF question



 
 
Thread Tools Display Modes
  #1  
Old August 28th, 2008, 02:35 PM posted to microsoft.public.excel.worksheet.functions
Stuart
external usenet poster
 
Posts: 157
Default IF question

Hi,

Can someone help with the following conditional IF question please:

If value in C4 is numeric, then the formula for K4 is C4*J4 rounded to 2
places
or if C4 is the text "item" or "Item", then take the value to be 1.

If C4 is empty, do nothing.

Regards and thanks,
Stuart.
  #2  
Old August 28th, 2008, 02:47 PM posted to microsoft.public.excel.worksheet.functions
David Biddulph
external usenet poster
 
Posts: 8,714
Default IF question

=IF(ISNUMBER(C4),ROUND(C4*J4,2),IF(C4="item",1,IF( C4="","","undefined
output")))
--
David Biddulph

"Stuart" wrote in message
...
Hi,

Can someone help with the following conditional IF question please:

If value in C4 is numeric, then the formula for K4 is C4*J4 rounded to 2
places
or if C4 is the text "item" or "Item", then take the value to be 1.

If C4 is empty, do nothing.

Regards and thanks,
Stuart.



  #3  
Old August 28th, 2008, 03:55 PM posted to microsoft.public.excel.worksheet.functions
Stuart
external usenet poster
 
Posts: 157
Default IF question

Thanks David.

How do I change it so that if C4 is empty of any data, then J4 stays blank,
please?

Regards,
Stuart.


  #4  
Old August 29th, 2008, 01:32 AM posted to microsoft.public.excel.worksheet.functions
David Biddulph
external usenet poster
 
Posts: 8,714
Default IF question

=IF(C4="","","whatever you want J4 to be in the cases where C4 isn't blank")
--
David Biddulph

"Stuart" wrote in message
...
Thanks David.

How do I change it so that if C4 is empty of any data, then J4 stays
blank,
please?

Regards,
Stuart.




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:49 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.