Home |
Search |
Today's Posts |
#9
![]() |
|||
|
|||
![]()
Just throwing out another idea...
=IF(AND(C2="",K2=""),"", LEFT(RIGHT(IF(C2="",K2,C2),15),8)) using this general idea: =LEFT(RIGHT(A1,8),3) HTH -- Dana DeLouis Win XP & Office 2003 "brookdale" wrote in message ... Thanks so much guys. It worked perfectly. Now you are going to be mad because I have another question. Here is the equation I was using for something else: =IF(ISBLANK(C2),RIGHT(K2,8),RIGHT(C2,8)) Basically I have a set of data, but it could randomly be in column C or K. So this chose the appropriate one. Now, a few columns had nothing in either, and this equation left a blank value, which was what I wanted. Here is the full equation I have been asking you for help with: =IF(ISBLANK(C2),MID(K2,LEN(K2)-15,8),MID(C2,LEN(C2)-15,8)) It also choses the appropriate column. However, if both C and K are blank, it returns a #VALUE!, rather than a blank. Any way to produce a blank if both C and K are empty? Thanks for dealing with my annoying questions. -- brookdale ------------------------------------------------------------------------ brookdale's Profile: http://www.excelforum.com/member.php...o&userid=24617 View this thread: http://www.excelforum.com/showthread...hreadid=382555 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
I NEED HELP with the SPELLNUMBER Function | Excel Worksheet Functions | |||
Excel option to store trendline's coefficients in cells for use | Charts and Charting in Excel | |||
Date & Time | New Users to Excel | |||
Automatically up date time in a cell | Excel Discussion (Misc queries) | |||
clock | Excel Worksheet Functions |