MrSamExcel
Board Regular
- Joined
- Apr 6, 2016
- Messages
- 51
- Office Version
- 365
- 2021
- Platform
- Windows
Why does my formula in B5 and B6 break with the words "SPARK" and "PARK" (regardless of upper/lower case)? As you can see, replacing SPARK with SARK works fine. I think the issue lies in the MID part of the formula because it generated a result when I just used the SEARCH and LEN parts.
Excel 2013 64 bit
[Table="width:, class:head"][tr=bgcolor:#888888][th] [/th][th]
[tr=bgcolor:#FFFFFF][td=bgcolor:#888888]
[tr=bgcolor:#FFFFFF][td=bgcolor:#888888]
[tr=bgcolor:#FFFFFF][td=bgcolor:#888888]
[tr=bgcolor:#FFFFFF][td=bgcolor:#888888]
[tr=bgcolor:#FFFFFF][td=bgcolor:#888888]
[tr=bgcolor:#FFFFFF][td=bgcolor:#888888]
[tr=bgcolor:#FFFFFF][td=bgcolor:#888888]
[/table][Table="width:, class:grid"][tr][td]Sheet: Sheet1[/td][/tr][/table]
Excel 2013 64 bit
[Table="width:, class:head"][tr=bgcolor:#888888][th] [/th][th]
A
[/th][th]B
[/th][th]C
[/th][/tr][tr=bgcolor:#FFFFFF][td=bgcolor:#888888]
1
[/td][td][/td][td=bgcolor:#00B050]NAME=[/td][td][/td][/tr][tr=bgcolor:#FFFFFF][td=bgcolor:#888888]
2
[/td][td][/td][td=bgcolor:#00B050]PAR[/td][td][/td][/tr][tr=bgcolor:#FFFFFF][td=bgcolor:#888888]
3
[/td][td][/td][td][/td][td]Formula Result[/td][/tr][tr=bgcolor:#FFFFFF][td=bgcolor:#888888]
4
[/td][td]HOLDING ASOFDATE="03/31/2017" CUSIP="87612G101" MKT_VALUE="22998904.50" NAME="TARGA RESOURCES CORP" PAR="383955.00" PERCENT_PORT="1.5" PRICE="59.90"[/td][td=bgcolor:#FFFFFF]=MID(A4,SEARCH($B$1,A4)+(LEN($B$1)+1),SEARCH($B$2,A4)-SEARCH($B$1,A4)-(LEN($B$1)+3))[/td][td]TARGA RESOURCES CORP[/td][/tr][tr=bgcolor:#FFFFFF][td=bgcolor:#888888]
5
[/td][td]HOLDING ASOFDATE="03/31/2017" CUSIP="B0T9JZ902" MKT_VALUE="21217562.58" NAME="SPARK INFRASTRUCTURE GROUP" PAR="11733643.00" PERCENT_PORT="1.4" PRICE="2.37"[/td][td=bgcolor:#FFFFFF]=MID(A5,SEARCH($B$1,A5)+(LEN($B$1)+1),SEARCH($B$2,A5)-SEARCH($B$1,A5)-(LEN($B$1)+3))[/td][td]#VALUE![/td][/tr][tr=bgcolor:#FFFFFF][td=bgcolor:#888888]
6
[/td][td]HOLDING ASOFDATE="03/31/2017" CUSIP="B0T9JZ902" MKT_VALUE="21217562.58" NAME="PARK INFRASTRUCTURE GROUP" PAR="11733643.00" PERCENT_PORT="1.4" PRICE="2.37"[/td][td=bgcolor:#FFFFFF]=MID(A6,SEARCH($B$1,A6)+(LEN($B$1)+1),SEARCH($B$2,A6)-SEARCH($B$1,A6)-(LEN($B$1)+3))[/td][td]#VALUE![/td][/tr][tr=bgcolor:#FFFFFF][td=bgcolor:#888888]
7
[/td][td]HOLDING ASOFDATE="03/31/2017" CUSIP="B0T9JZ902" MKT_VALUE="21217562.58" NAME="SARK INFRASTRUCTURE GROUP" PAR="11733643.00" PERCENT_PORT="1.4" PRICE="2.37"[/td][td=bgcolor:#FFFFFF]=MID(A7,SEARCH($B$1,A7)+(LEN($B$1)+1),SEARCH($B$2,A7)-SEARCH($B$1,A7)-(LEN($B$1)+3))[/td][td]SARK INFRASTRUCTURE GROUP[/td][/tr][/table][Table="width:, class:grid"][tr][td]Sheet: Sheet1[/td][/tr][/table]
Last edited: