Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / August 2007

Tip: Looking for answers? Try searching our database.

Formula Hell

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JB - 28 Aug 2007 18:38 GMT
I have converted an Excel workbook form into an Infopath 2007 form.  The
problem I am having is converting a complex excel formula into a Infopath
2007 formula.

Here is the original excel formula:

=IF(ROUNDUP(8*((B4/(B10-1))-TRUNC(B4/(B10-1),0)),0)=0,TRUNC(B4/(B10-1),0),IF(ROUNDUP(8*((B4/(B10-1))-TRUNC(B4/(B10-1),0)),0)=4,TRUNC(B4/(B10-1),0)+0.5,IF(ROUNDUP(8*((B4/(B10-1))-TRUNC(B4/(B10-1),0)),0)=2,TRUNC(B4/(B10-1),0)+0.25,IF(ROUNDUP(8*((B4/(B10-1))-TRUNC(B4/(B10-1),0)),0)=6,TRUNC(B4/(B10-1),0)+0.75,IF(ROUNDUP(8*((B4/(B10-1))-TRUNC(B4/(B10-1),0)),0)=8,1+TRUNC(B4/(B10-1),0),TRUNC(B4/(B10-1),0)+ROUNDUP(8*((B4/(B10-1))-TRUNC(B4/(B10-1),0)),0)/8)))))

The problem I am having is translating the above formula into something
usable in Infopath 2007.  I can obviously use 'Round' in Infopath.  However,
is there away to use 'IF' and 'TRUNC'?  These do not seem to be available in
Infopath 2007.

Could someone attempt to try to translate the above excel formula into an
usable infopath formula?

-jb
S.Y.M. Wong-A-Ton - 31 Aug 2007 10:36 GMT
It's advisable to write code for this, since the formula is too complex for
InfoPath. Excel is good with numbers, InfoPath is good with XML data; not
calculations.
---
S.Y.M. Wong-A-Ton

> I have converted an Excel workbook form into an Infopath 2007 form.  The
> problem I am having is converting a complex excel formula into a Infopath
[quoted text clipped - 13 lines]
>
> -jb

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.