![]() |
|
#1
|
|||
|
|||
|
I have a problem with an if formular. Individually it works for me, but not together. Can You help me?
=WENN(ISTZAHL(SUCHEN("PK";GLÄTTEN($E5)));LINKS((TE XTNACH(GLÄTTEN($E5);"PK";1));4)*1;WENN(ISTZAHL(SUC HEN("KR";GLÄTTEN($E5)));LINKS((TEXTNACH(GLÄTTEN($E 5);"KR";1));4)*1)) individually: =WENN(ISTZAHL(SUCHEN("PK";GLÄTTEN($E5)));LINKS((TE XTNACH(GLÄTTEN($E5);"PK";1));4)*1) =WENN(ISTZAHL(SUCHEN("KR";GLÄTTEN($E5)));LINKS((TE XTNACH(GLÄTTEN($E5);"KR";1));4)*1) Next Problem is, I would like to have the 4-string Number or 3-string Number behind the "PK" or "PKR" Is it possible? |
|
#2
|
||||
|
||||
|
Take a look at column K in the attached:
Code:
=INDEX(TEXTSPLIT(TRIM(INDEX(TEXTSPLIT(E2,{"PK","PKR"}),2)),{" ","-"}),1)
ps. You seem to be one (of many) people who only acknowledge past help when they need more help. |
|
#3
|
||||
|
||||
|
Quote:
Couldn't have put it better
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
|
#4
|
|||
|
|||
|
Many Thanks!!! It works perfect!!!
|
|
#5
|
|||
|
|||
|
Unfortunately there is one Exception, I couldn't solve... for the most I have adjusted the nice formular....but does not work with: see attached file
could you please check? It's in Cell E26. =WENNFEHLER((INDEX(TEXTTEILEN(GLÄTTEN(INDEX(TEXTTE ILEN(E26;{"PK"."PKR"."PKF"."AV"});2));{" "."-""("")"});1))*1;0), but this one I've adjusted is not correct...;-( Last edited by JanFr; 11-07-2025 at 02:53 AM. Reason: more Information |
|
#6
|
||||
|
||||
|
Perhaps like the attached? ( you forgot some array delimiters)
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
|
#7
|
||||
|
||||
|
@Pecoflyer is right.
Just one thing; I'd be cautious about multiplying the result by 1 to return a number. Unless you're going to do arithmetical operations on these results I'd leave them as strings (you'd never do arithmetic on bank account numbers or debit/credit card numbers (except to check they're valid card numbers)). |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| =SUM(MAXIFS formula works in some cells and not others | garymon9AX | Excel | 2 | 02-28-2018 09:54 AM |
Formula result not displaying in cell (but f9 works)
|
nath1235 | Excel | 4 | 10-06-2017 12:42 PM |
Help with a formula which no longer works.
|
Silkwood | Excel | 2 | 03-21-2017 02:25 PM |
Formula works in Excel on my computer, but not on my PDA
|
Frenchy305 | Excel | 3 | 12-17-2015 08:33 AM |
Formula works on most cells
|
gbaker | Excel | 1 | 04-26-2014 12:31 AM |