Solved

Updating Column Based on Criteria within Fields

Posted on 2016-09-14
5
42 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
ID: 41798503
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
ID: 41798586
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)
ID: 41798590
You're welcome!
0
 

Author Closing Comment

by:rporter45
ID: 41817064
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)
ID: 41817113
You're welcome again!
There are endless possibilities, you only need to explore them. :)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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,…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

867 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

19 Experts available now in Live!

Get 1:1 Help Now