Solved

Syntax

Posted on 2013-01-21
7
211 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
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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

'Between' is such a common word we rarely think about it but in SQL it has a very specific definition we should be aware of. While most database vendors will have their own unique phrases to describe it (see references at end) the concept in common …
I'm trying, I really am. But I've seen so many wrong approaches involving date(time) boundaries I despair about my inability to explain it. I've seen quite a few recently that define a non-leap year as 364 days, or 366 days and the list goes on. …
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

839 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