Solved

Creating advanced calculated field in sharepoint

Posted on 2014-12-09
2
156 Views
Last Modified: 2014-12-09
Hello,

I need help with a calculated field.. As im not an excel expert its pretty hard...:)

I have 2 fields
field1
Field2

I need a calculated field with the following output:
1 = field1 is empty
2 = field1 is not empty but smaller or bigger then field 2
3 = field1 is the same as field2

1 is easy 3 is easy but 2 is hard. And then putting everything in 1 field is even harder:)

=IF([Controle inkoopbedrag]=[Inkoopbedrag (ex btw)];"3")
=IF([Controle inkoopbedrag]<[Inkoopbedrag (ex btw)];"2")
=IF(ISBLANK([Controle inkoopbedrag]);"1")

thanks!
thanks!
0
Comment
Question by:Hans de Jongh
[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
2 Comments
 
LVL 9

Accepted Solution

by:
skipper68 earned 500 total points
ID: 40489914
Instead of trying to figure out "field1 is not empty but smaller or bigger then field 2", what if you just check if it is not empty and not equal to field 2
     =IF(AND(ISBLANK(field1)=FALSE,field1<>field2),2,"")

Then put them all together you put the next check in the false value
     =IF(ISBLANK(field1),1,IF(AND(ISBLANK(field2)=FALSE,field1<>field2),2,IF(field1=field2,3,"")))
0
 

Author Closing Comment

by:Hans de Jongh
ID: 40489976
thanks skipper!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

756 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