![]() |
|
|
|
#1
|
|||
|
|||
|
With using ISERROR(), and checking both parts of your function, the possible solution may be (be careful to keep relative/absolute references correct):
1. Activate any cell in row 2 and define a dynamic Name (I assume the sheet name is Sheet1), e.g. Code:
nDynamicName1 = LEFT(Sheet1!$C2,FIND(" ",Sheet1!$C2,FIND(" ",Sheet1!$C2,1)+1))
2. Remain in row 2 and define another dynamic Name, e.g. Code:
nDynamicName2 = RIGHT(Sheet1!$C2,LEN(Sheet1!$C2)-FIND("-",Sheet1!$C2))
To return empty string whenever C2 is empty, C2 whenever nDynamicName1 or nDynamicName2 returns an error, and your formula result otherwise, the formula in any column of row 2 will be Code:
="" & IF(OR(ISERROR(nDynamicName1),ISERROR(nDynamicName2)),$C2,nDynamicName1 & nDynamicName2) |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Formula Copy Row 2 Row But Next Column In Formula From Another Tab | TimG | Excel | 3 | 04-16-2018 09:20 PM |
Possible to use an existing vlookup formula to also insert correct info and trigger a SUM formula
|
innkeeper9 | Excel | 2 | 09-13-2016 08:59 PM |
| Help With a Formula | OTPM | Excel | 3 | 05-26-2016 03:42 AM |
| Need help with dragging a formula and changing a reference column as I drag the formula. | LupeB | Excel | 1 | 10-22-2015 03:02 PM |
Help with formula please.
|
AndrewSE | Excel | 3 | 04-05-2011 08:50 PM |