Solved

I need to update an excel formula

Posted on 2014-03-04
5
187 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

738 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