Solved

I need to update an excel formula

Posted on 2014-03-04
5
180 Views
Last Modified: 2014-03-04
I am using the following formula:

=IF(I10="","",TEXT(I10,"M/D/YY")&" (E)")

I need to be able to also check another cell for a date value, AO10. If there is a value there it returns the value, adds a space, and then (A). If there isnt a value, it just goes through the original formula.

Ideally, it would look like this with both having values:

3/1/12 (E)
3/5/12 (A)

Value in I10 and no value AO10:

3/1/12 (E)

Value in AO10 and no value in I10:

3/5/12 (A)
0
Comment
Question by:wrt1mea
  • 2
  • 2
5 Comments
 
LVL 39

Expert Comment

by:nutsch
ID: 39903820
Something like this? Can you have a case when both AO10 and I10 have a value?

=IF(I10="",TEXT(AO10,"M/D/YY")&" (A)",TEXT(I10,"M/D/YY")&" (E)")

or something like that, with a line feed in between?

=IF(I10="","",TEXT(I10,"M/D/YY")&" (E)") & char(10) & if(AO10="","",TEXT(AO10,"M/D/YY")&" (A)")


Thomas
0
 
LVL 1

Author Comment

by:wrt1mea
ID: 39903830
Yes, I can have mult cases where both cells have values...
0
 
LVL 39

Accepted Solution

by:
nutsch earned 350 total points
ID: 39903839
Then use this formula, with the cell formatted as wrap text:


=IF(I10="","",TEXT(I10,"M/D/YY")&" (E)") & char(10) & if(AO10="","",TEXT(AO10,"M/D/YY")&" (A)")
0
 
LVL 8

Assisted Solution

by:itjockey
itjockey earned 150 total points
ID: 39903925
if I properly understood your question "you are searching date values in both cell with combination then try this. this formula searching for only date values.
=IF(AND(CELL("Format",I10)="D4",AO10=""),TEXT(I10,"M/D/YY")&" (E)",IF(AND(CELL("Format",AO10)="D4",I10=""),TEXT(AO10,"M/D/YY")&" (A)",IF(AND(CELL("Format",I10)="D4",CELL("Format",AO10)="D4"),TEXT(I10,"M/D/YY")&" (E)"&"   "&TEXT(AO10,"M/D/YY")&" (A)",IF(AND(I10="",AO10=""),""))))

Open in new window


thanks
0
 
LVL 1

Author Closing Comment

by:wrt1mea
ID: 39904238
THANKS! WORKS GREAT!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
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…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

705 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

18 Experts available now in Live!

Get 1:1 Help Now