Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
Solved

# Creating advanced calculated field in sharepoint

Posted on 2014-12-09
Medium Priority
162 Views
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
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

LVL 9

Accepted Solution

skipper68 earned 2000 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

ID: 40489976
thanks skipper!
0

## Featured Post

Question has a verified solution.

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

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…
###### Suggested Courses
Course of the Month8 days, 14 hours left to enroll