Solved

Syntax

Posted on 2013-01-21
7
213 Views
Last Modified: 2013-01-21
How can I modify the following to divide by F51?

=IF((ISERROR(PI_Con_Value_2/F40),"-",(PI_Con_Value_2/F40)/F51*Curr_Den_Project))

Thanks...
0
Comment
Question by:pdvsa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 6

Expert Comment

by:RaithZ
ID: 38802650
Do you want to divide by F51 after it has been multiplied by Curr_Den_Project?  If So add parenthesis around F51*Curr_Den_Project .

If thats not what you want, please explain in more detail, the order of the calculations you want to happen.
0
 

Author Comment

by:pdvsa
ID: 38802801
Raith:

thanks for the response.  
Order I need is as follows:
(PI_Con_Value_2/F40)/F51   then * by Curr_Den_Project

thank you
0
 
LVL 6

Expert Comment

by:RaithZ
ID: 38802852
Then add parenthesis around (PI_Con_Value_2/F40)/F51

It would look like this afterwards assuming there were no syntax errors:

=IF((ISERROR(PI_Con_Value_2/F40),"-",((PI_Con_Value_2/F40)/F51)*Curr_Den_Project))
0
Get Actionable Data from Your Monitoring Solution

Your communication platform is only as good as the relevance of the information you send. Ensure your alerts get to the right people every time with actionable responses. Create escalation rules that ensure everyone follows the process and nothing is left to chance.

 

Author Comment

by:pdvsa
ID: 38802899
Raith:

I do get a syntax.  I think I need to also modify the first part as well?
0
 
LVL 6

Accepted Solution

by:
RaithZ earned 400 total points
ID: 38803030
Try this...

=IF(ISERROR(PI_Con_Value_2/F40),"-",((PI_Con_Value_2/F40)/F51)*Curr_Den_Project)
0
 

Author Closing Comment

by:pdvsa
ID: 38803267
thanks...
0
 
LVL 61

Expert Comment

by:mbizup
ID: 38803276
I think you're looking for IIF, not IF.  (?)


=IIF(ISERROR(Curr_Den_Project * ((PI_Con_Value_2/F40) /F51) ) ,"-", Curr_Den_Project * ((PI_Con_Value_2/F40) /F51))

Open in new window

0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question