bit of a curly one!

hepkat63

New Member
Joined
Aug 23, 2022
Messages
22
Office Version
  1. 365
Platform
  1. Windows
Hi all,
I have a bit of a curly problem that I'm hoping someone can help me work though!
Every day, I am required to manipulate a couple of existing spreadsheets in able to consolidate data in to a certain format as so I can then copy/paste that information into SAP.
I can do this with lots of manual steps, however of course would like to automate it, but the variables have made it a confusing problem.
I have one spreadsheet called 'issues. This contains multiple columns which are populated as goods are issued from our store.
I have another spreadsheet that is created daily by downloading information from SAP. The name of this spreadsheet changes everyday with the download based on date.
First problem: How to isolate the required five columns and varying amount of rows of data from the 'issues' sheet that are between yesterdays date and todays date AND from the 2nd last row that has been highlighted in Yellow colour to the last row that is highlighted in the Yellow color (I highlight the row at the end of the shift to differentiate between shifts). Then select and copy this data to another spreadsheet
Second problem: In the downloaded spreadsheet from SAP, go to the first empty row (as each day the amount of data varies), then go to column number four and paste the data from Problem 1 (issues sheet)
Hoping someone can help!
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Hi,
It would be easier to get answers if you posted the worksheets as a sample.

Have a look at here how to use XL2BB
 
Upvote 0
GoodsIssuedToSap_20220823_130304.xlsx
ABCDEFGHI
1MaintenanceTransactionNumberLocationDescriptionSAPMaterialNumberQuantityUnESLocCostCentreUserViewShort
2123400028079R1-7HOLDER KNIFE SUPERGRINDER B371800-8021651 MS0110801234DBARNES
3123400028091PLUG S/S 3/8 INCH800-7567221 MS0113161234WRAMPONI
4123400028092B1-3VALVE MFH-3-1/8 WAFMFH-3-18800-7866161 MS0110201234SJONES
5123400028086WIRE BRUSH S/S 4 ROW PLASTIC HANDLE800-7657161 MS0110201234SCOTT
6123400028087PLASTICSBAG BARRIER BXGUARD 400X500 AI517 TPD600-1503742100 SL0211901234SROLFE
7123400028087PLASTICSBAG BARRIER NEWTEQ 350 X 550 AI 517600-1618329000 SL0211901234SROLFE
8123400028087PLASTICSBAG BARRIER NEWTEQ 225 X 790 AI 517600-1520553600 SL0211901234SROLFE
9123400028078PLASTICSBAG BARRIER NEWTEQ 250 X 550 AI 517600-161831700 SL0210201234SROLFE
10123400028087PLASTICSBAG BARRIER NEWTEQ 300 X 600 AI 517600-15027110000 SL0211901234SROLFE
11123400028089PLASTICSBAG BARRIER NEWTEQ 325X700 AI517 TPD600-176372900 SL0210201234SROLFE
12123400028087PLASTICSBAG BARRIER NEWTEQ 400X600USA AI517 TPD600-1502758000 SL0211901234SROLFE
13123400028087PLASTICSBAG BARRIER NEWTEQ 425X750 USA AI517600-1502799000 SL0211901234SROLFE
14123400028078PLASTICSBAG BARRIER NEWTEQ225X460OFFALAI517 STKD600-1557861000 SL0210201234SROLFE
15123400028089PLASTICSBAG PRINT 517 460X610X25UM HD 1000RL600-1491571000 SL0210201234SROLFE
16123400028088CARDBOARDBASE CHILLED LGE ME-102GL C97600-1937621680 SL0211901234SROLFE
17123400028088CARDBOARDBASE CHILLED MED ME-101GL C97600-1937611680 SL0211901234SROLFE
18123400028088CARDBOARDBASE CHILLED SML ME-100GL C97600-1937631200 SL0211901234SROLFE
19123400028088CARDBOARDBASE FROZEN 60LB600-1492963200 SL0211901234SROLFE
20123400028078BASE OFFAL 60LB HOOK & EYE600-191206450 SL0210201234SROLFE
21123400028089CARDBOARDCARTON OFFAL 40LB600-191203480 SL0210201234SROLFE
22123400028089CARDBOARDDIVIDER 165MM CODE-38600-19096050 SL0210201234SROLFE
23123400028093CARTON STOGLUE HOTMELT HEATSPEK 9000 15KG600-22281960 SL0211901234SROLFE
24123400028084CARDBOARDLID CHILLED AUSSIE SH600-1909571200 SL0213961234MARK
25123400028088CARDBOARDLID FROZEN BP 60LB S600-1910723200 SL0211901234SROLFE
26123400028078LID OFFAL AMH 60LB LG600-191205450 SL0210201234SROLFE
27123400028089PLASTICSSTRAPPING CLEAR 9MMX4000M RL600-1580411 SL0210201234SROLFE
28123400028080LAUNDRYJACKET FRZ FGR/YELLH/VREFLT TAPE SZ 6XL500-2026241 SL1113961234NSUKWIPAD
29123400028083LAUNDRY-1JACKET FRZ FGR/YELLH/VREFLT TAPE SZ XL500-2026191 SL1113961234NSUKWIPAD
30123400028085LAUNDRY-2SHIRT POLO HIVIS REF PREM YEL/NAV SZ M500-2045581 SL1113961234LPRIOR
31123400028081LAUNDRY-2SHIRT WHITE L/S POLY COTTON SML C-7000/C500-2590871 SL1111901234NSUKWIPAD
32123400028082LAUNDRY-1TROUSER CARGO NAVY BLUE SZ 97R500-2058663 SL1113961234NSUKWIPAD
33123400028090LAUNDRYTROUSERS FRZFOR GR/YELL H/V PANEL SZM500-2026281 SL1113961234LPRIOR
34123400028081LAUNDRY-1TROUSERS POLY COTTON WHITE SZ 77500-2044081 SL1111901234NSUKWIPAD
35GLOVE POLAR BEAR RED SZ 7500-2210782SL1110201234LPRIOR
36INSOLE BOOT SZ 6500-2089731SL1110201234LPRIOR
37GLOVE POLAR BEAR YELLOW SZ 8500-2210792SL1111901234LPRIOR
38GLOVE POLAR BEAR BLACK SZ 10500-2210812SL1110201234LPRIOR
39GLOVES COTTON KNITTED500-2071341SL1113001234LPRIOR
40KNIFE BONING 6IN WIDE 2-700-15-115W500-2040092SL1111901234MARK
41KNIFE POUCH WHITE DOUBLE 22CMS KP01500-2059281SL1111901234MARK
42STEEL **** COMBI 7-3882-25-66500-2029711SL1111901234MARK
43CHAIN BUTCHERS BE970500-2092701SL1111901234MARK
44STEEL HOLDER500-2042501SL1111901234MARK
45GLOVES COTTON KNITTED500-2071341SL1113961234MARK
46GLOVES BEAVER NAVY WITH YELLOW STIPLES500-2188722SL1113961234MARK
47KNIFE BONING 6IN WIDE 2-700-15-115W500-2040091SL1111901234MARK
48KNIFE BONING 5IN VICT PRO 2-720-13-200BL500-2291991SL1111901234MARK
49STEEL F **** 12IN COMBI SQUARE 7-5982-30500-2060151SL1111901234MARK
50GLOVE POLAR BEAR DARK BLUE SZ 9500-2210802SL1111901234MARK
51SLEEVE 28CM CUT-RESISTANT GREY CUFF500-2200901SL1111901234MARK
52GLOVE POLAR BEAR YELLOW SZ 8500-2210792SL1111901234MARK
53GLOVE POLAR BEAR YELLOW SZ 8500-2210792SL1111901234MARK
54SLEEVE 50CM CUT-RESISTANT GREY CUFF 93.500-2200921SL1111901234MARK
55SLEEVE 50CM CUT-RESISTANT GREY CUFF 93.500-2200921SL1111901234MARK
56GLOVE POLAR BEAR YELLOW SZ 8500-2210792SL1111901234MARK
57GLOVES BEAVER NAVY WITH YELLOW STIPLES500-2188722SL1113961234MARK
58SLEEVE 28CM CUT-RESISTANT GREY CUFF500-2200901SL1111901234MARK
59GLOVE POLAR BEAR YELLOW SZ 8500-2210792SL1111901234MARK
60BOOT PU GREEN BEKINA STEPLITEX SZ 9500-2698921SL1110201234CBIRTHIS
61GLOVES BEAVER NAVY WITH YELLOW STIPLES500-2188722Sl1113001234LPRIOR
62GLOVE SILVERLINED 88-350 SZ7500-35871360SL1120721234CBIRTHIS
63GLOVE SILVERLINED 88-350 SZ8500-358715144SL1120721234CBIRTHIS
64GLOVE SILVERLINED 88-350 SZ9500-35878796SL1120721234CBIRTHIS
65GLOVE SILVERLINED 88-350 SZ10500-35878936SL1120721234CBIRTHIS
66INSOLE BOOT SZ 11500-2089672SL1111901234CBIRTHIS
67GLOVE DISPOSABLE SHOULDER LENGTH PLASTIC500-2075042SL1111901234CBIRTHIS
68GLOVE NITRILE G/T TOUCH BLUE SZ L500-2679382SL1111901234CBIRTHIS
69BELT BUTCHER500-2100761SL1111901234CBIRTHIS
70GLOVES BEAVER NAVY WITH YELLOW STIPLES500-2188722SL1113961234CBIRTHIS
71GLOVES COTTON KNITTED500-2071341SL1113961234CBIRTHIS
72GLOVE DISPOSABLE SHOULDER LENGTH PLASTIC500-2075042SL1111901234CBIRTHIS
73GLOVE NITRILE G/T TOUCH BLUE SZ L500-2679382SL1111901234CBIRTHIS
74GLOVES BEAVER NAVY WITH YELLOW STIPLES500-2188722SL11500-208306CBIRTHIS
75APRON PVC 90 X 120 WHITE500-2083081SL1110201234CBIRTHIS
76GLASSES SAFETY ANTI FOG CLEAR MEVX2C500-2075071SL1111901234LPRIOR
77GLOVE POLAR BEAR YELLOW SZ 8500-2210791SL1110201234LPRIOR
78KNIFE BONING 6IN FDICK FLEX BL 8-2981-15500-2046612SL1110201234LPRIOR
79APRON PVC 90 X 120 RED500-2083061SL1111901234CBIRTHIS
80GLOVE POLAR BEAR DARK BLUE SZ 9500-2210804SL1110201234LPRIOR
81GLOVES COTTON KNITTED500-2071342SL1110701234LPRIOR
82TRAPPER GLUE BOARD (PACK 12) TR2712500-2046264SL1120001234SROLFE
WMS 201
Cell Formulas
RangeFormula
G2:G34G2=IF(COUNTIF(D2,{"500*"}), "SL11", IF(COUNTIF(D2,{"600*"}), "SL02", IF(COUNTIF(D2,{"801*"}), "MS01", IF(COUNTIF(D2,{"800*"}), "MS01"))))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G1Cell Value="SL02"textNO
G1Cell Value="SL11"textNO
A1Cell ValueduplicatestextNO
G2:G1048576Cell Value="SL02"textNO
G2:G1048576Cell Value="SL11"textNO
G3Cell Value="SL11"textNO
A2:A83,A85:A1048576Cell ValueduplicatestextNO
 
Upvote 0
above is the sheet that I paste into (this has already been done in the example above)
 
Upvote 0
Here is the 2nd spreadsheet.

1661307613391.png
 
Upvote 0
Hi,
Since the "issues" worksheet has been posted as an image (not via XLBB), to test this, we need to type data manually. Please accept that I didn't test it with actual sample data, there might be a misunderstanding.
VBA Code:
Sub Sample1()
    Dim shDLSAP As Worksheet    'SAP worksheet
    Dim shIssues As Worksheet    'Issues worksheet
    Dim shTemp As Worksheet    'Temporary helper worksheet
    Dim dtCnt As Long

    Application.ScreenUpdating = False

    Set shDLSAP = Sheets("Result")    'Change here to suit actual sheet name
    Set shIssues = Sheets("issues")    'Change here to suit actual sheet name
    Set shTemp = Sheets.Add    'Making a temporary helper wks

    'Filter by the date between Yesterday and Today
    shIssues.Activate
    shIssues.AutoFilterMode = False
    With shIssues.UsedRange
        .AutoFilter Field:=6, Criteria1:=Format(Date - 1, Range("F2").NumberFormatLocal), Operator:=xlOr, Criteria2:=Format(Date, Range("F2").NumberFormatLocal)
        .Range(.Range("A2"), .Cells(Rows.Count, "G").End(xlUp)).Copy shTemp.Range("A1")
    End With
    'Counting fildtered data
    dtCnt = shIssues.AutoFilter.Range.Columns(1).SpecialCells(xlCellTypeVisible).Count - 1
    shIssues.AutoFilterMode = False

    'Data transfer
    With shDLSAP.Cells(Rows.Count, 1).End(xlUp).Offset(1)
        .Offset(, 2).Resize(dtCnt).Value = shTemp.Range("G1").Resize(dtCnt).Value
        .Offset(, 3).Resize(dtCnt).Value = shTemp.Range("A1").Resize(dtCnt).Value
        .Offset(, 4).Resize(dtCnt).Value = shTemp.Range("B1").Resize(dtCnt).Value
        .Offset(, 6).Resize(dtCnt).Value = shTemp.Range("C1").Resize(dtCnt).Value
        .Offset(, 7).Resize(dtCnt).Value = shTemp.Range("D1").Resize(dtCnt).Value
        .Offset(, 8).Resize(dtCnt).Value = shTemp.Range("E1").Resize(dtCnt).Value
    End With

    'Deleting the helper worksheet
    Application.DisplayAlerts = False
    shTemp.Delete
    Application.DisplayAlerts = True

    shDLSAP.Select
    Application.ScreenUpdating = True
End Sub
 
Upvote 0
thank you - much appreciated. I'll give it a try and let you know.
 
Upvote 0
Ok, so I've just had a chance to try this, but it bombs out on line 7. I've changed the sheet name as it says to in the comment, opened that sheet and then ran F8 to step into, but it fails.

Sub Sample1()
Dim shDLSAP As Worksheet 'SAP worksheet
Dim shIssues As Worksheet 'Issues worksheet
Dim shTemp As Worksheet 'Temporary helper worksheet
Dim dtCnt As Long

Application.ScreenUpdating = False

Set shDLSAP = Sheets("GoodsIssuedToSap_20220829_131456.xlsx") 'Change here to suit actual sheet name
Set shIssues = Sheets("store tally report - MASTER.xlsm") 'Change here to suit actual sheet name
Set shTemp = Sheets.Add 'Making a temporary helper wks

'Filter by the date between Yesterday and Today
shIssues.Activate
shIssues.AutoFilterMode = False
With shIssues.UsedRange
.AutoFilter Field:=6, Criteria1:=Format(Date - 1, Range("F2").NumberFormatLocal), Operator:=xlOr, Criteria2:=Format(Date, Range("F2").NumberFormatLocal)
.Range(.Range("A2"), .Cells(Rows.Count, "G").End(xlUp)).Copy shTemp.Range("A1")
End With
'Counting fildtered data
dtCnt = shIssues.AutoFilter.Range.Columns(1).SpecialCells(xlCellTypeVisible).Count - 1
shIssues.AutoFilterMode = False

'Data transfer
With shDLSAP.Cells(Rows.Count, 1).End(xlUp).Offset(1)
.Offset(, 2).Resize(dtCnt).Value = shTemp.Range("G1").Resize(dtCnt).Value
.Offset(, 3).Resize(dtCnt).Value = shTemp.Range("A1").Resize(dtCnt).Value
.Offset(, 4).Resize(dtCnt).Value = shTemp.Range("B1").Resize(dtCnt).Value
.Offset(, 6).Resize(dtCnt).Value = shTemp.Range("C1").Resize(dtCnt).Value
.Offset(, 7).Resize(dtCnt).Value = shTemp.Range("D1").Resize(dtCnt).Value
.Offset(, 8).Resize(dtCnt).Value = shTemp.Range("E1").Resize(dtCnt).Value
End With

'Deleting the helper worksheet
Application.DisplayAlerts = False
shTemp.Delete
Application.DisplayAlerts = True

shDLSAP.Select
Application.ScreenUpdating = True
End Sub
 
Upvote 0
Here is the goods issued sheet:
GoodsIssuedToSap_20220829_131456.xlsx
ABCDEFGHI
1MaintenanceTransactionNumberLocationDescriptionSAPMaterialNumberQuantityUnESLocCostCentreUserViewShort
2123400028203V1-1BATTEN WEATHERPROOF LED SL9721-35W DL800-9496042 MS0113001234BDEMAMIEL
3123400028203H10-3CABLE RTD 1500MM CH12265801-0606471 MS0113001234BDEMAMIEL
4123400028194H10-3CONNECTOR TURCK FS4.4 1825-05800-7480032 MS0110201234BDEMAMIEL
5123400028196CONTACT NORMALLY CLOSED TEL ZB4BZ102800-7970661 MS0111901234RBRITTS
6123400028180HC13-2ENCLOSURE MTG 2G 198X101X63 56E2RO800-7498451 MS0113001234RBRITTS
7123400028197K4-4HOLDER SPRING CONTACT Y2702416801-0164493 MS0110201234BDEMAMIEL
8123400028187SMCJOINER STRT PUSHFIT 10MMX10MM KQ2H10-00A801-0636761 MS0111901234PHINEAS
9123400028205B3-3KIT WEAR DNC-80-PPV-A FESTO 369199800-8009891 MS0110201234SJONES
10123400028189MODULE FLEX ROLLER CRG16801V800-8832191 MS0111901234BRUCE
11123400028201J8-2NYLON STEEL HOLDER800-8000774 MS0111901234BRUCE
12123400028204HB0-2PLUG 2 FLAT + ROUND EARTH 10A - CLIPSAL800-7860501 MS0113001234DMICKAN
13123400028178HB0-2PLUG STRAIGHT 3 FLAT PIN 10A - CLIPSAL800-7860541 MS0113001234TRIDDELL
14123400028196H3-2PUSHBUTTON EMER STOP RED ZB4BS844800-7572081 MS0111901234RBRITTS
15123400028182FKREFLECTOR IFM 18MM PE (OGP200)800-7574531 MS0113001234RBRITTS
16123400028181H5-4SENSOR PHOTOELECTRIC VT180-P440 6008793800-7601041 MS0111901234BRIGHTWELL
17123400028180HC12-3SOCKET COMB PIN 10A LESS ENCL 56C310LERO800-7607682 MS0113001234RBRITTS
18123400028186L6-2SPROCKET S800 132MMD 8T ANG 40MM SQBORE800-7616791 MS0110201234INNOCENT
19123400028180HC11-2SWITCH 250V 10A 2WAY 56SW110/2LERO800-7864341 MS0113001234RBRITTS
20123400028185WIRE BRUSH S/S 4 ROW PLASTIC HANDLE800-7657161 MS0110201234INNOCENT
21123400028183X-DELETE800-8708771 MS0111901234CONTRACTOR
22123400028202PLASTICSBAG PRINT 517 460X800X25UM HD 750RL600-1491601500 SL0211901234SROLFE
23123400028200CARDBOARDBASE CHILLED LGE ME-102GL C97600-1937621680 SL0211901234SROLFE
24123400028200CARDBOARDBASE CHILLED MED ME-101GL C97600-193761840 SL0211901234SROLFE
25123400028200CARDBOARDBASE CHILLED SML ME-100GL C97600-193763600 SL0211901234SROLFE
26123400028200CARDBOARDBASE FROZEN 60LB600-1492963200 SL0211901234SROLFE
27123400028202LABELSINSERT WAGYU BLACK MBS7-8 140X100 1000RL600-1938403000 SL0211901234SROLFE
28123400028199LABELSLABEL BLANK LSWI001 CHINA 76X48600-15006046000 SL0211901234SROLFE
29123400028202LABEL THERMAL RED BORDER 77X124 1200RL600-14915014400 SL0211901234SROLFE
30123400028190CARDBOARDLID CHILLED AMH WHITE600-1912091200 SL0213961234SROLFE
31123400028192CARDBOARDLID CHILLED RIV BLACK ANG PP600-1914221200 SL0213961234SROLFE
32123400028179CARDBOARDLID CHILLED THOUSAND600-1912071200 SL0213961234MARK
33123400028200CARDBOARDLID FROZEN BP 60LB S600-1910723200 SL0211901234SROLFE
34123400028202PLASTICSLINER BLUE 540+380x580x90UM LD 150/RL600-16792150 SL0211901234SROLFE
35123400028202BAG POLY 205LT NATURAL 11489500-2236931 SL1111901234SROLFE
36123400028198LAUNDRY-2DUSTCOAT WHITE YELLOW HIVIS P/COT SZ 6500-2446981 SL1111901234LPRIOR
37123400028188LAUNDRY-3JACKET RAIN H/V LIME/YELLNY SZ 4XL500-2027021 SL1111901234LPRIOR
38123400028195LAUNDRY-2JACKET RAIN H-V LIME/YELLNY SZ XL500-2026991 SL1113001234LPRIOR
39123400028191LAUNDRY-2SHIRT WHITE L/S POLY COTTON 3XL C-7000/C500-2590931 SL1111901234LPRIOR
40123400028191LAUNDRY-2SHIRT WHITE L/S POLY COTTON MED C-7000/C500-2590891 SL1111901234LPRIOR
41123400028193TREATMENT BOILER ALKALI 15L 356.11H500-2556002 SL1113141234WRAMPONI
42123400028184LAUNDRY-1TROUSERS POLY COTTON WHITE SZ 87500-2044101 SL1111901234CBIRTHIS
43GLOVE POLAR BEAR RED SZ 7500-2210782SL1110201234NSUKWIPAD
44STEEL **** COMBI 7-3882-25-66500-2029711SL1110201234MARK
45GLOVE SILVERLINED 88-350 SZ7500-35871312SL1110201234MARK
46GLOVE SILVERLINED 88-350 SZ8500-35871524SL1110201234MARK
47GLOVE POLAR BEAR DARK BLUE SZ 9500-2210801SL1111901234MARK
48BOOT PU GREEN BEKINA STEPLITEX SZ 9500-2698921SL1111901234MARK
49GLASSES SAFETY ANTI FOG CLEAR MEVX2C500-2075071SL1111901234MARK
50GLOVES FREEZER FUR LINED500-2072271SL1113961234MARK
51GLOVE POLAR BEAR DARK BLUE SZ 9500-2210802SL1111901234MARK
52GLOVE POLAR BEAR BLACK SZ 10500-2210812SL1111901234NSUKWIPAD
53EARMUFFS PELTOR H7P3E CLIP-ON500-2188121SL1111901234NSUKWIPAD
54GLASSES SAFETY ANTI FOG CLEAR MEVX2C500-2075071SL1111901234NSUKWIPAD
55GLOVE SILVERLINED 88-350 SZ7500-35871360SL1120721234CBIRTHIS
56GLOVE SILVERLINED 88-350 SZ8500-358715144SL1120721234CBIRTHIS
57GLOVE SILVERLINED 88-350 SZ9500-35878796SL1120721234CBIRTHIS
58GLOVE SILVERLINED 88-350 SZ10500-35878924SL1120721234CBIRTHIS
59GLOVE DISPOSABLE SHOULDER LENGTH PLASTIC500-2075042SL1111901234CBIRTHIS
60GLOVE NITRILE G/T TOUCH BLUE SZ L500-2679382SL1111901234CBIRTHIS
61GLOVES BEAVER NAVY WITH YELLOW STIPLES500-2188722SL1113961234CBIRTHIS
62GLOVES BEAVER NAVY WITH YELLOW STIPLES500-2188722SL1113961234CBIRTHIS
63GLOVE DISPOSABLE SHOULDER LENGTH PLASTIC500-2075042SL1111901234CBIRTHIS
64GLOVE NITRILE G/T TOUCH BLUE SZ L500-2679382SL1111901234CBIRTHIS
65APRON PVC 90 X 120 WHITE500-2083081SL1110201234CBIRTHIS
66GLOVE NITRILE G/T TOUCH BLUE SZ L500-2679382SL1110201234CBIRTHIS
67CARTRIDGES GREEN STUNNER BX1000500-20890520SL1110201234CBIRTHIS
68O RING WHITE LARGE 'D' 15MM500-267925500SL1110201234CBIRTHIS
69APRON PVC 90 X 120 WHITE500-2083081SL1110201234SROLFE
70APRON PVC 90 X 120 WHITE500-2083081SL1110201234SROLFE
71GLOVES NITTY GRITTY (12PR BOX)500-2064961SL1110201234LPRIOR
72SQUEEGEE RED 600MM500-2042441SL1111901234LPRIOR
73COUNTER TALLY DESKTOP 2 BANK 4 DIGIT D2500-2642851SL1110201234SROLFE
74GLOVE POLAR BEAR DARK BLUE SZ 9500-2210801SL1111901234LPRIOR
75GLASSES SAFETY ANTI FOG CLEAR MEVX2C500-2075071SL1113001234LPRIOR
76GLOVES BEAVER NAVY WITH YELLOW STIPLES500-2188722SL1113961234LPRIOR
77GLOVES COTTON KNITTED500-2071341SL1113961234LPRIOR
78APRON PVC 90 X 120 WHITE500-2083081SL1113001234LPRIOR
79GLOVE GREEN PVC DOUBLE DIP 45CM500-2290772SL1113001234LPRIOR
WMS 201
Cell Formulas
RangeFormula
G2:G42G2=IF(COUNTIF(D2,{"500*"}), "SL11", IF(COUNTIF(D2,{"600*"}), "SL02", IF(COUNTIF(D2,{"801*"}), "MS01", IF(COUNTIF(D2,{"800*"}), "MS01"))))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G1Cell Value="SL02"textNO
G1Cell Value="SL11"textNO
A1Cell ValueduplicatestextNO
G2:G1048576Cell Value="SL02"textNO
G2:G1048576Cell Value="SL11"textNO
G3Cell Value="SL11"textNO
A2:A80,A82:A1048576Cell ValueduplicatestextNO
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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