Solved

I need to update an excel formula

Posted on 2014-03-04
5
188 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
[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
  • Learn & ask questions
  • 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:Naresh Patel
Naresh Patel 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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This article describes a serious pitfall that can happen when deleting shapes using VBA.
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…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

626 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