Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old Today, 02:26 AM
JanFr JanFr is offline If formular (2 ifs) works alone, but not together Windows 10 If formular (2 ifs) works alone, but not together Office 2021
Novice
If formular (2 ifs) works alone, but not together
 
Join Date: Sep 2025
Location: Hanover
Posts: 4
JanFr is on a distinguished road
Default If formular (2 ifs) works alone, but not together


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?
Attached Files
File Type: xlsx Test1.xlsx (11.2 KB, 4 views)
Reply With Quote
  #2  
Old Today, 09:54 AM
p45cal's Avatar
p45cal p45cal is offline If formular (2 ifs) works alone, but not together Windows 10 If formular (2 ifs) works alone, but not together Office 2021
Expert
 
Join Date: Apr 2014
Posts: 959
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

Take a look at column K in the attached:
Code:
=INDEX(TEXTSPLIT(TRIM(INDEX(TEXTSPLIT(E2,{"PK","PKR"}),2)),{" ","-"}),1)
It works for all of your sample data but do test it more thoroughly.


ps. You seem to be one (of many) people who only acknowledge past help when they need more help.
Attached Files
File Type: xlsx MSOfficeForums_Test1.xlsx (12.4 KB, 0 views)
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Merge documents;Formular with Checkboxes Rekun Word VBA 0 07-11-2018 11:51 AM
If formular (2 ifs) works alone, but not together Date Range Formular Colin C Excel 5 04-22-2017 11:46 PM
Side view: Color of summary with formular interrupted Mojo99 Project 5 10-07-2016 09:11 AM
I need to change a formular to overide formula shanni11 Excel 1 09-10-2016 12:09 AM
If formular (2 ifs) works alone, but not together Quick eplanation of formular msheyworth Excel 2 03-23-2013 11:43 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:17 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft