Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default Translating an IF formula from Lotus 1-2-3 to Excel

On 3 Nov 2005 14:57:19 -0800, "fsufan13" wrote:

Sorry, Ron, I didn't see your question. The output for the first cell
(M69) should be ------(blank) if the difference of par level (J69)
minus (E69) actual inventory divided by 2 < 0. This output is correct.
Then N69 should return ------ also. What these columns represent are
2 orders for the week, half on each of 2 days.

Does this make any sense? Thanks for your help.

Cheri



N69 is returning a #VALUE! error because one of its inputs, which is supposed
to be numeric, is your string of dashes. In your first formula, the
logical_test: (J69-E69)-M690 fails when it tries to subtract M69 from
(J69-E69). Since M69 is a text string ("-----") and since the formula requires
numeric entries, you get the error.

1. Your logical test is the same as J69-E69-M690. In this case, the
parentheses will not change Excel's order of evaluation. In your logical_test
formula, the addition and subtraction will be performed before the comparison
anyway.

2. To eliminate the VALUE error, you either have to have a "number" in M69; or
somehow test for it in your other formula
=IF((J69-E69)-M690,ROUND((J69-E69),0)-M69," ------- ")

To change the formula in M69, you could do:

=IF(J69-E690,ROUND(ROUND(J69-E69,0)/2,0),0)

but then custom format the cell to show the -'s. To custom format:
Format/Cells/Custom/Type: 0;0;*- will fill the cell with -'s if the value is
zero. You could also format a fixed number of -'s for zero; and you can format
the positive and negative numbers to show decimals.

If this is not convenient (perhaps you might normally want to have a zero in
that cell, then altering the other formula to check the contents of M69 before
doing the math:

=IF(ISNUMBER(M69),IF(J69-E69-M690,
ROUND((J69-E69),0)-M69," ------- "),"-------")


--ron
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
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER MEGTOM New Users to Excel 5 October 27th 05 03:06 AM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
In excel the formula bar behaves differently on different machines vijay Excel Discussion (Misc queries) 0 May 20th 05 06:27 AM
Converting an Excel formula to an Access query formula Adam Excel Discussion (Misc queries) 1 December 15th 04 03:38 AM
Excel 2003 - Formula result shows as 0:00 Serena Excel Worksheet Functions 4 November 11th 04 10:18 PM


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