Solved

Syntax

Posted on 2013-01-21
7
208 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
  • 3
  • 3
7 Comments
 
LVL 6

Expert Comment

by:RaithZ
Comment Utility
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
Comment Utility
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
Comment Utility
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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:pdvsa
Comment Utility
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
Comment Utility
Try this...

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

Author Closing Comment

by:pdvsa
Comment Utility
thanks...
0
 
LVL 61

Expert Comment

by:mbizup
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now