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 Word » Tables
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Excel Formula to Word Table



 
 
Thread Tools Display Modes
  #1  
Old November 21st, 2007, 12:16 AM posted to microsoft.public.word.tables
setoFairfax
external usenet poster
 
Posts: 1
Default Excel Formula to Word Table

I'm having trouble converting an Excel formula to function in a Word
Table...I don't even know if the nested if statement is possible.

The Excel function is;
=IF(A2="","", IF(A2100, 70, 70+ROUNDUP((A2-100)/100, 0)*25))

This function calculates inspection fees on utilities based on footage. All
inspections under 100ft are $70. Inspections over 100ft are $70 for the
first 100ft and then $25 for each 100ft thereafter. The first part of the IF
statement A2="","" just keeps the charge cell blank if there is no value in
the footage cell. The function may be more understandable here;

=IF(A2="","", keeps unused cells blank

IF(A2100, 70, If the inspection is 100ft or less, it is $70

70+ROUNDUP((A2-100)/100, 0)*25)) for inspections greater than
100ft, the $70 base fee is applied, plus $25 for each additional 100ft (or
part of 100ft)
  #2  
Old November 21st, 2007, 03:11 AM posted to microsoft.public.word.tables
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,239
Default Excel Formula to Word Table

The simplest thing is probably just to use and Excel Spreadsheet in your
document rather than a Word table.

With a table, you would need the following field construction

{ IF { = A2 + 0 ] = 0 "" { IF { = A2 + 0 ) 100 70 { = 25 * { = 70 + ( A2 -
100 ) / 100 \# "0" }}}}

You must use Ctrl+F9 to insert each pair of field delimiters.

Note the above does no actually round up the 70 + ( A2 - 100 ) / 100

Fellow MVP, Macropod has the field construction required to do the round up
in his Math Tutorial at:

http://www.wopr.com/cgi-bin/w3t/show...?Number=365442

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"setoFairfax" wrote in message
...
I'm having trouble converting an Excel formula to function in a Word
Table...I don't even know if the nested if statement is possible.

The Excel function is;
=IF(A2="","", IF(A2100, 70, 70+ROUNDUP((A2-100)/100, 0)*25))

This function calculates inspection fees on utilities based on footage.
All
inspections under 100ft are $70. Inspections over 100ft are $70 for the
first 100ft and then $25 for each 100ft thereafter. The first part of the
IF
statement A2="","" just keeps the charge cell blank if there is no value
in
the footage cell. The function may be more understandable here;

=IF(A2="","", keeps unused cells blank

IF(A2100, 70, If the inspection is 100ft or less, it is $70

70+ROUNDUP((A2-100)/100, 0)*25)) for inspections greater than
100ft, the $70 base fee is applied, plus $25 for each additional 100ft (or
part of 100ft)



 




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 01:34 PM.


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