Solved

Left formula with IF

Posted on 2011-03-14
13
262 Views
Last Modified: 2012-05-11
Hi,

I have some left formula with an IF thats not quite working.

The cell highlighted red needs to be the date from cell C4.

Can someone have a look and see where the error is?

Thanks
Seamus
test1.xls
0
Comment
Question by:Seamus2626
13 Comments
 
LVL 30

Expert Comment

by:SiddharthRout
Comment Utility
You don't need to use an if formula for that :)

Put this formula there =C4 and then format the cell as mm/dd/yyyy

Sid
0
 
LVL 30

Accepted Solution

by:
SiddharthRout earned 250 total points
Comment Utility
Sample attached.

Sid
Test.xls
0
 
LVL 50

Assisted Solution

by:teylyn
teylyn earned 250 total points
Comment Utility
Hello Seamus,

since you want the date only when column E is "no", you can use

=IF(E4="No",Int(C4),"")

then format the result cell as date. The INT() will cut off the time portion. Or just use

=IF(E4="No",C4,"")

and format as date without time.

cheers, teylyn
0
 
LVL 10

Expert Comment

by:Makrini
Comment Utility
or

=IF(E4="No",TEXT(C4,"mm/dd/yyyy"))
0
 
LVL 59

Expert Comment

by:Chris Bottomley
Comment Utility
But for example a formula for that would be:

=IF(E4="No",TEXT(C4,"mm dd yyyy"),"")

Chris
0
 
LVL 24

Expert Comment

by:jimyX
Comment Utility
Sid means to say no need for LEFT:
=IF(E4="No",LEFT(C4,10),"")
So it becomes:
=IF(E4="No",C4,"")
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 30

Expert Comment

by:SiddharthRout
Comment Utility
Thanks jimy :)

Yes you are right.

Sid
0
 
LVL 30

Expert Comment

by:SiddharthRout
Comment Utility
Seamus: I re looked at the posts. Though I pointed you in the right direction, I believe Teylyn gave you the exact answer and hence the points should have been split between me and her ;)

Sid
0
 

Author Comment

by:Seamus2626
Comment Utility
Thanks Sid, have requested attention and will reallocate.

Thank you
Seamus
0
 
LVL 30

Expert Comment

by:SiddharthRout
Comment Utility
Much appreciated :)

Sid
0
 

Author Comment

by:Seamus2626
Comment Utility
Nope, thank you!

Seamus
0
 

Author Closing Comment

by:Seamus2626
Comment Utility
Thanks all

Seamus
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
need to save the complete html of a webpage using ie using vba access 10 45
Conditional format Excel Cell 3 16
Excel 6 18
Excel 3 21
Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

744 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