Unable get result NOT(ISBLANK()), nested IFs

JPARKHURST

Board Regular
Joined
Oct 25, 2016
Messages
151
Job Set
Jobs
- Finished Good Job
- Manufactured Parts Jobs

I have a table which shows me purchased parts shortages. I want to concatenate shortages for similar Job Sets. Now,my table auto-produces the Job Set for Jobs that are for the finished goods. I manually input Job Sets for non-finished goods Jobs.

What I am wanting to do is concatenate two fields based upon a comparison of the Jobset and NonFG Jobset fields.

Now, i don't have a problem getting my results with the working formula below, but I need to add the following checks:
  • Check if k1=k2;
  • check k1="-" and prevent two matching "-"'s;
  • check L1 to see if it is blank,
  • Compare K1 TO K2; K1 TO L2; L1 TO K2; L1 TO L2 for a match


This was my old formula i used before I had to worry about Non FG Job Sets. It shows what the purchased part number is, and when it is expected to arrive.
=IF(B1=B2, CONCATENATE(J1," | ",C2, " ",TEXT(F2,"MMM-DD")),CONCATENATE(C2," ",TEXT(F2,"MMM-DD")))

I tried this formula, but it would notwork correctly
VERSION 1.3 TEST
=IF(K1=K2,CONCATENATE(J1," | ",C2, " ",TEXT(F2,"MMM-DD")),IF(NOT(ISBLANK(L2)),IF(K1=L2,CONCATENATE(J1," | ",C2, " ",TEXT(F2,"MMM-DD")),IF(AND(NOT(ISBNLANK(L1)),NOT(ISBLANK(L2))),IF(L1=L2, CONCATENATE(J1," | ",C2, " ",TEXT(F2,"MMM-DD")),CONCATENATE(C2," ",TEXT(F2,"MMM-DD"))))))

Here is my nonWorking Very Basic Formula. It gives me L1=L2 when there is a blank field in L1, despite what I thought was a NOt(ISBLANK()) condition to prevent that. If I take out NOT, then I just get a False reading.
=IF(AND(K1="-",K2="-"),"",IF(K1=K2, "K1=K2", IF(K1=L2,"K1=l2",IF((NOT(ISBLANK(L1))),IF(L1=L2,"L1=L2","CONCATENATE NORMAL"),""))))

Can anybody see in particular why the last basic formula is giving me a L1=L2 when the cell is blank? Is there a better way than using nested IF's?

Thanks for any help in advance.

Jon
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Two additions:

1. I also need to still capture the Jobs if they match, as some of my jobs do not have containing jobsets.

Also, here is my table structure, with the basic script in:

DATE PURCHASE UPDATEDJOBSHORTAGE PART #DESCRIPTIONPO #PO DUE DATESTATUSBUYERNOTESShortages CompiledJobset SearchNonFG Jobset
03/20/17953681002861Caster271705/05/17PUR UPDATE W1002861 May-052495
03/20/17953771008220Trim302205/05/17PUR UPDATE WL1=L22497
03/20/17996531008182Slide233604/19/17PUR UPDATE WL1=L22589
03/02/17104516multiple, see noteLegs and cross brace294005/01/17PUR UPDATEF1010058, 1010059, 10010060CONCATENATE NORMAL-2700
03/20/171060081010056Wood Rod275804/10/17PUR UPDATEWCan cover 350 before PO arrivesCONCATENATE NORMAL2756
02/13/171060591010431Trim267703/20/17PUR UPDATE FYOU ARE 4 SHORTL1=L22757
03/20/171069991008182Slide233604/19/17PUR UPDATE WL1=L22783
02/10/171072111003206Bag Assy277905/17/17PUR UPDATE FSupplier unable to get parts before thisL1=L22790
02/10/171072821003295Bag Assy237803/27/17PUR UPDATE FL1=L22793
03/20/171072941003493Particle Board275804/03/17PUR UPDATEWDate on PO was moved out on 3/15. At that point the job was on 4/10 and the move was okay. Job was moved up to 3/21 on 3/16L1=L22794
03/20/1710733012918A44-SSLock248404/14/17PUR UPDATE WL1=L22796
03/21/171081891008047Ball Stud22123/23 OR 3/24PUR UPDATE WCONCATENATE NORMAL-2818
03/22/171093971012987Magnet276004/28/17PUR UPDATE WProduction will be taking the current on hand out of these magnets. Loss of 260CONCATENATE NORMAL2835
03/20/171109001008182Slide233604/19/17PUR UPDATE WL1=L22861
02/21/171109831009151TRIM287604/04/17PUR UPDATE FL1=L22862
03/20/171123931014613Trim232904/21/17PUR UPDATE WL1=L22889
03/20/171123931014614Trim225904/21/17PUR UPDATE WK1=K22889
03/20/171130891005111Slide193503/28/17PUR UPDATE WL1=L22915
03/20/171131061005111Slide193503/28/17PUR UPDATE WL1=L22916
03/20/171131231005111Slide193503/28/17PUR UPDATE WL1=L22917
03/20/171131401005111Slide193503/28/17PUR UPDATE WL1=L22918
03/20/171131741005111Slide274504/14/17PUR UPDATE WL1=L22920
03/20/171131911005111Slide274504/14/17PUR UPDATE WL1=L22921
03/20/171132081005111Slide274504/14/17PUR UPDATE WL1=L22922
03/20/171136601006787Liner297605/12/17PUR UPDATE WL1=L22940
03/20/171138661006781Liner297605/12/17PUR UPDATE WL1=L22943
03/20/17113931W13640SlidePUR UPDATE WCan this job be decreased by 1? Then there will be enough slides. L1=L22945
03/20/171141721006787Liner297605/12/17PUR UPDATE WL1=L22949
03/20/171161579317A11Gas Spring282404/28/17PUR UPDATE WL1=L22977
03/20/171168911010103Parawood251704/17/17PUR UPDATE WL1=L22998
03/02/17116895multiple, see noteLegs and cross brace294005/01/17PUR UPDATEFyou can run 550 of this job, 1010058, 1010059, 10010060K1=l2-2998

<colgroup><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>

Table Structure with original, working formula in - look at Jobsets Search / Non FG Jobset 2998, you can see the Shortages Compiled do not incorporate each other. sEE js 2889 for proper Concatenation.

DATE PURCHASE UPDATEDJOBSHORTAGE PART #DESCRIPTIONPO #PO DUE DATESTATUSBUYERNOTESShortages CompiledJobset SearchNonFG Jobset
03/20/17953681002861Caster271705/05/17PUR UPDATE W1002861 May-052495
03/20/17953771008220Trim302205/05/17PUR UPDATE W1008220 May-052497
03/20/17996531008182Slide233604/19/17PUR UPDATE W1008182 Apr-192589
03/02/17104516multiple, see noteLegs and cross brace294005/01/17PUR UPDATEF1010058, 1010059, 10010060multiple, see note May-01-2700
03/20/171060081010056Wood Rod275804/10/17PUR UPDATEWCan cover 350 before PO arrives1010056 Apr-102756
02/13/171060591010431Trim267703/20/17PUR UPDATE FYOU ARE 4 SHORT1010431 Mar-202757
03/20/171069991008182Slide233604/19/17PUR UPDATE W1008182 Apr-192783
02/10/171072111003206Bag Assy277905/17/17PUR UPDATE FSupplier unable to get parts before this1003206 May-172790
02/10/171072821003295Bag Assy237803/27/17PUR UPDATE F1003295 Mar-272793
03/20/171072941003493Particle Board275804/03/17PUR UPDATEWDate on PO was moved out on 3/15. At that point the job was on 4/10 and the move was okay. Job was moved up to 3/21 on 3/161003493 Apr-032794
03/20/1710733012918A44-SSLock248404/14/17PUR UPDATE W12918A44-SS Apr-142796
03/21/171081891008047Ball Stud22123/23 OR 3/24PUR UPDATE W1008047 3/23 OR 3/24-2818
03/22/171093971012987Magnet276004/28/17PUR UPDATE WProduction will be taking the current on hand out of these magnets. Loss of 2601012987 Apr-282835
03/20/171109001008182Slide233604/19/17PUR UPDATE W1008182 Apr-192861
02/21/171109831009151TRIM287604/04/17PUR UPDATE F1009151 Apr-042862
03/20/171123931014613Trim232904/21/17PUR UPDATE W1014613 Apr-212889
03/20/171123931014614Trim225904/21/17PUR UPDATE W1014613 Apr-21 | 1014614 Apr-212889
03/20/171130891005111Slide193503/28/17PUR UPDATE W1005111 Mar-282915
03/20/171131061005111Slide193503/28/17PUR UPDATE W1005111 Mar-282916
03/20/171131231005111Slide193503/28/17PUR UPDATE W1005111 Mar-282917
03/20/171131401005111Slide193503/28/17PUR UPDATE W1005111 Mar-282918
03/20/171131741005111Slide274504/14/17PUR UPDATE W1005111 Apr-142920
03/20/171131911005111Slide274504/14/17PUR UPDATE W1005111 Apr-142921
03/20/171132081005111Slide274504/14/17PUR UPDATE W1005111 Apr-142922
03/20/171136601006787Liner297605/12/17PUR UPDATE W1006787 May-122940
03/20/171138661006781Liner297605/12/17PUR UPDATE W1006781 May-122943
03/20/17113931W13640SlidePUR UPDATE WCan this job be decreased by 1? Then there will be enough slides. W13640 Jan-002945
03/20/171141721006787Liner297605/12/17PUR UPDATE W1006787 May-122949
03/20/171161579317A11Gas Spring282404/28/17PUR UPDATE W9317A11 Apr-282977
03/20/171168911010103Parawood251704/17/17PUR UPDATE W1010103 Apr-172998
03/02/17116895multiple, see noteLegs and cross brace294005/01/17PUR UPDATEFyou can run 550 of this job, 1010058, 1010059, 10010060multiple, see note May-01-2998

<colgroup><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
Im trying to picture what your data/layout looks like (and not succeeding too well lol)

1st let me say that if a cell contains anything - even a formula returning "", it is not blank

Based on your NOT working formula....
=IF(countif(K1:K2,"-")=2,"",IF(K1=K2, "K1=K2", IF(K1=L2,"K1=l2",IF(L1<>"",IF(L1=L2,"L1=L2","CONCATENATE NORMAL"),""))))

To simplify your "working" part...
=IF(B1=B2, J1&" | ","")&C2&" "&TEXT(F2,"MMM-DD")
 
Upvote 0
Awesome, I like the way you went with that. Let me play around.

Thank you very much, and I much appreciate some more experienced advice.

Jon
 
Upvote 0

Forum statistics

Threads
1,215,025
Messages
6,122,732
Members
449,093
Latest member
Mnur

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top