Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old Yesterday, 02:26 AM
JanFr JanFr is offline If formula (2 ifs) works alone, but not together Windows 10 If formula (2 ifs) works alone, but not together Office 2021
Novice
If formula (2 ifs) works alone, but not together
 
Join Date: Sep 2025
Location: Hanover
Posts: 4
JanFr is on a distinguished road
Default If formula (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 Yesterday, 09:54 AM
p45cal's Avatar
p45cal p45cal is offline If formula (2 ifs) works alone, but not together Windows 10 If formula (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
  #3  
Old Today, 01:11 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline If formula (2 ifs) works alone, but not together Windows 11 If formula (2 ifs) works alone, but not together Office 2021
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,946
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Quote:
Originally Posted by p45cal View Post

ps. You seem to be one (of many) people who only acknowledge past help when they need more help.
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
Reply With Quote
Reply



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
If formula (2 ifs) works alone, but not together Formula result not displaying in cell (but f9 works) nath1235 Excel 4 10-06-2017 12:42 PM
If formula (2 ifs) works alone, but not together Help with a formula which no longer works. Silkwood Excel 2 03-21-2017 02:25 PM
If formula (2 ifs) works alone, but not together Formula works in Excel on my computer, but not on my PDA Frenchy305 Excel 3 12-17-2015 08:33 AM
If formula (2 ifs) works alone, but not together Formula works on most cells gbaker Excel 1 04-26-2014 12:31 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:19 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