Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 127
Default If statement to replace #VALUE! code

Hi Experts:

I know this is fundamental to formulas, but I'm doing something wrong..N20
returns #VALUE! if N21 is Blank......I want to it to state:

If Cell N21 is Blank, Insert 0:00:00

The existing formula that I want to add this statement to is:

=ROUND(TRIM(N21)*1440,0)/60

Can anyone help?
--
jeannie v
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default If statement to replace #VALUE! code

Try

=ROUND(TRIM(N(N21))*1440,0)/60



--
Regards,

Peo Sjoblom



"jeannie v" wrote in message
...
Hi Experts:

I know this is fundamental to formulas, but I'm doing something wrong..N20
returns #VALUE! if N21 is Blank......I want to it to state:

If Cell N21 is Blank, Insert 0:00:00

The existing formula that I want to add this statement to is:

=ROUND(TRIM(N21)*1440,0)/60

Can anyone help?
--
jeannie v



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 127
Default If statement to replace #VALUE! code

Peo:

That you so much.....it works just fine!
--
jeannie v


"Peo Sjoblom" wrote:

Try

=ROUND(TRIM(N(N21))*1440,0)/60



--
Regards,

Peo Sjoblom



"jeannie v" wrote in message
...
Hi Experts:

I know this is fundamental to formulas, but I'm doing something wrong..N20
returns #VALUE! if N21 is Blank......I want to it to state:

If Cell N21 is Blank, Insert 0:00:00

The existing formula that I want to add this statement to is:

=ROUND(TRIM(N21)*1440,0)/60

Can anyone help?
--
jeannie v




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 127
Default If statement to replace #VALUE! code

Peo:

I spoke too soon....It's true that it did give me the 0:00, but I didn't
make my question clear enough....I also want it to return the formulated
value other than 0:00:00 if it exists....Example:

If N21 is blank, return 0.00, but if N21 is 6:53:32, return that result
value of the formula: =ROUND(TRIM(N21)*1440,0)/60

Does that make sense?

Thank you for your help,
--
jeannie v


"Peo Sjoblom" wrote:

Try

=ROUND(TRIM(N(N21))*1440,0)/60



--
Regards,

Peo Sjoblom



"jeannie v" wrote in message
...
Hi Experts:

I know this is fundamental to formulas, but I'm doing something wrong..N20
returns #VALUE! if N21 is Blank......I want to it to state:

If Cell N21 is Blank, Insert 0:00:00

The existing formula that I want to add this statement to is:

=ROUND(TRIM(N21)*1440,0)/60

Can anyone help?
--
jeannie v




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 740
Default If statement to replace #VALUE! code

try this one
=IF(N21="","0:00:00",ROUND(TRIM(N21)*1440,0)/60)
regards,
driller
--
*****
birds of the same feather flock together..



"jeannie v" wrote:

Peo:

I spoke too soon....It's true that it did give me the 0:00, but I didn't
make my question clear enough....I also want it to return the formulated
value other than 0:00:00 if it exists....Example:

If N21 is blank, return 0.00, but if N21 is 6:53:32, return that result
value of the formula: =ROUND(TRIM(N21)*1440,0)/60

Does that make sense?

Thank you for your help,
--
jeannie v


"Peo Sjoblom" wrote:

Try

=ROUND(TRIM(N(N21))*1440,0)/60



--
Regards,

Peo Sjoblom



"jeannie v" wrote in message
...
Hi Experts:

I know this is fundamental to formulas, but I'm doing something wrong..N20
returns #VALUE! if N21 is Blank......I want to it to state:

If Cell N21 is Blank, Insert 0:00:00

The existing formula that I want to add this statement to is:

=ROUND(TRIM(N21)*1440,0)/60

Can anyone help?
--
jeannie v






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 127
Default If statement to replace #VALUE! code

Dear, Dear driller:

It works just great! Thank You!
--
jeannie v


"driller" wrote:

try this one
=IF(N21="","0:00:00",ROUND(TRIM(N21)*1440,0)/60)
regards,
driller
--
*****
birds of the same feather flock together..



"jeannie v" wrote:

Peo:

I spoke too soon....It's true that it did give me the 0:00, but I didn't
make my question clear enough....I also want it to return the formulated
value other than 0:00:00 if it exists....Example:

If N21 is blank, return 0.00, but if N21 is 6:53:32, return that result
value of the formula: =ROUND(TRIM(N21)*1440,0)/60

Does that make sense?

Thank you for your help,
--
jeannie v


"Peo Sjoblom" wrote:

Try

=ROUND(TRIM(N(N21))*1440,0)/60



--
Regards,

Peo Sjoblom



"jeannie v" wrote in message
...
Hi Experts:

I know this is fundamental to formulas, but I'm doing something wrong..N20
returns #VALUE! if N21 is Blank......I want to it to state:

If Cell N21 is Blank, Insert 0:00:00

The existing formula that I want to add this statement to is:

=ROUND(TRIM(N21)*1440,0)/60

Can anyone help?
--
jeannie v



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 740
Default If statement to replace #VALUE! code

"De Nada"
--
*****
birds of the same feather flock together..



"jeannie v" wrote:

Dear, Dear driller:

It works just great! Thank You!
--
jeannie v


"driller" wrote:

try this one
=IF(N21="","0:00:00",ROUND(TRIM(N21)*1440,0)/60)
regards,
driller
--
*****
birds of the same feather flock together..



"jeannie v" wrote:

Peo:

I spoke too soon....It's true that it did give me the 0:00, but I didn't
make my question clear enough....I also want it to return the formulated
value other than 0:00:00 if it exists....Example:

If N21 is blank, return 0.00, but if N21 is 6:53:32, return that result
value of the formula: =ROUND(TRIM(N21)*1440,0)/60

Does that make sense?

Thank you for your help,
--
jeannie v


"Peo Sjoblom" wrote:

Try

=ROUND(TRIM(N(N21))*1440,0)/60



--
Regards,

Peo Sjoblom



"jeannie v" wrote in message
...
Hi Experts:

I know this is fundamental to formulas, but I'm doing something wrong..N20
returns #VALUE! if N21 is Blank......I want to it to state:

If Cell N21 is Blank, Insert 0:00:00

The existing formula that I want to add this statement to is:

=ROUND(TRIM(N21)*1440,0)/60

Can anyone help?
--
jeannie v



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 299
Default If statement to replace #VALUE! code

It does, you just have to make sure the cell with the formula is formatted
as time


--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
(Remove ^^ from email)


"jeannie v" wrote in message
...
Peo:

I spoke too soon....It's true that it did give me the 0:00, but I didn't
make my question clear enough....I also want it to return the formulated
value other than 0:00:00 if it exists....Example:

If N21 is blank, return 0.00, but if N21 is 6:53:32, return that result
value of the formula: =ROUND(TRIM(N21)*1440,0)/60

Does that make sense?

Thank you for your help,
--
jeannie v


"Peo Sjoblom" wrote:

Try

=ROUND(TRIM(N(N21))*1440,0)/60



--
Regards,

Peo Sjoblom



"jeannie v" wrote in message
...
Hi Experts:

I know this is fundamental to formulas, but I'm doing something
wrong..N20
returns #VALUE! if N21 is Blank......I want to it to state:

If Cell N21 is Blank, Insert 0:00:00

The existing formula that I want to add this statement to is:

=ROUND(TRIM(N21)*1440,0)/60

Can anyone help?
--
jeannie v






  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 299
Default If statement to replace #VALUE! code

What's the point of returning a text string if N21 is blank, why not just 0?


--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
(Remove ^^ from email)



"driller" wrote in message
...
try this one
=IF(N21="","0:00:00",ROUND(TRIM(N21)*1440,0)/60)
regards,
driller
--
*****
birds of the same feather flock together..



"jeannie v" wrote:

Peo:

I spoke too soon....It's true that it did give me the 0:00, but I didn't
make my question clear enough....I also want it to return the formulated
value other than 0:00:00 if it exists....Example:

If N21 is blank, return 0.00, but if N21 is 6:53:32, return that result
value of the formula: =ROUND(TRIM(N21)*1440,0)/60

Does that make sense?

Thank you for your help,
--
jeannie v


"Peo Sjoblom" wrote:

Try

=ROUND(TRIM(N(N21))*1440,0)/60



--
Regards,

Peo Sjoblom



"jeannie v" wrote in message
...
Hi Experts:

I know this is fundamental to formulas, but I'm doing something
wrong..N20
returns #VALUE! if N21 is Blank......I want to it to state:

If Cell N21 is Blank, Insert 0:00:00

The existing formula that I want to add this statement to is:

=ROUND(TRIM(N21)*1440,0)/60

Can anyone help?
--
jeannie v





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
Code to replace Advanced Filter RobN[_2_] Excel Discussion (Misc queries) 4 June 14th 07 12:31 PM
Can I create an If Statement that will replace text kalikw Excel Worksheet Functions 4 March 30th 06 02:34 AM
Search and replace chunks of html code method373 Excel Discussion (Misc queries) 0 March 27th 06 03:46 PM
How do I use an if statement with Find and Replace Gerald Excel Worksheet Functions 2 October 3rd 05 10:24 PM
Replace Symbol "Code(63)" Andri Excel Worksheet Functions 4 February 20th 05 09:17 AM


All times are GMT +1. The time now is 11:25 PM.

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"