Solved

Creating advanced calculated field in sharepoint

Posted on 2014-12-09
2
154 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
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…
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 in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

813 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

17 Experts available now in Live!

Get 1:1 Help Now