Solved

Updating Column Based on Criteria within Fields

Posted on 2016-09-14
5
35 Views
Last Modified: 2016-09-26
Hi there, I have been trying to wrap my head around this for a bit and am wondering if Crystal would be better for this but prior to moving in that direction I thought I'd ask the experts!

I have attached a file of sample data and here is the summary:

>If someone is deceased using deceased date within 07/01/2015 to 06/30/2016 AND the CodeDate is in the same range, update the field list to "In Memoriam Current"
>If someone has deceased = Yes and no deceased date but the CodeDate is between 07/01/2015 and 06/30/2016 the update the list column to In Memoriam Current.
>If someone is deceased using deceased date prior to 07/01/2015 and the CodeDate is less than 07/01/2015 then update the column list to "In Memoriam"
>If someone has deceased = Yes and no deceased date and CodeDate is less than 07/01/2015 then update the column list to "In Memoriam"
>all others would be "Current"

Can excel do this or did I just confuse everyone? I'm curious because I normally use crystal and really don't want to make a ton of different reports but would like to automate this for future.

Thanks very much in advance -
CS
EE-Test.xlsx
0
Comment
Question by:rporter45
  • 3
  • 2
5 Comments
 
LVL 28

Accepted Solution

by:
Subodh Tiwari (Neeraj) earned 500 total points
Comment Utility
Maybe this?

=IF(AND(M2>=DATEVALUE("07/01/2015"),M2<=DATEVALUE("06/30/2016"),OR(AND(G2>=DATEVALUE("07/01/2015"),G2<=TODAY()),AND(F2="Yes",G2=""))),"In Memoriam - Current",IF(AND(M2<TODAY(),G2<TODAY()),"In Momoriam","Current"))

Open in new window

0
 

Author Comment

by:rporter45
Comment Utility
So far that looks like it will work - I had a minor tweak to a cell letter but other than that - it looks ok so far. I will test live on the entire group and will let you know!  thanks - CS
0
 
LVL 28

Expert Comment

by:Subodh Tiwari (Neeraj)
Comment Utility
You're welcome!
0
 

Author Closing Comment

by:rporter45
Comment Utility
Perfect thanks - after seeing this I really have to see what else excel can do to make life easier!

thank you - CS
0
 
LVL 28

Expert Comment

by:Subodh Tiwari (Neeraj)
Comment Utility
You're welcome again!
There are endless possibilities, you only need to explore them. :)
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

763 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

5 Experts available now in Live!

Get 1:1 Help Now