Posts by MattChoo

    Re: INDEX/MATCH Lookup for only visible text cells


    Quote from NBVC;785391

    Try this array* formula:


    =IFERROR(INDEX('ICE Incoming'!$P$2:$P$5000,SMALL(IF(((SUBTOTAL(3,OFFSET('ICE Incoming'!$B$2:$B$5000,ROW('ICE Incoming'!$B$2:$B$5000)-MIN(ROW('ICE Incoming'!$B$2:$B$5000)),,1))>0)*('Supplier Performance'!$AG$5='ICE Incoming'!$B$2:$B$5000)),ROW('ICE Incoming'!$B$2:$B$5000)-MIN(ROW('ICE Incoming'!$B$2:$B$5000))+1),ROW(A1))),"")


    [ARF]x[/ARF]


    Thank you very much - works like a charm :)

    Hi Guys,


    So i'm trying to return data from a table using this array formula - the Formula works like a charm but I need it to pickup when the data table has been filtered. I've been trying to use SUBTOTAL but I cannot get it it return text values, only numbers.


    Here is my formula:


    {=IFERROR(INDEX('ICE Incoming'!$P$2:$P$5000,SMALL(IF('Supplier Performance'!$AG$5='ICE Incoming'!$B$2:$B$5000,ROW('ICE Incoming'!$B$2:$B$5000)-MIN(ROW('ICE Incoming'!$B$2:$B$5000))+1,""),ROW(A1))),"")}


    Column P is what I want returning, column B has the criteria values in, AG5 is the criteria.


    Hope that makes sense.

    Hi Guys,


    I have two tables with sets of various data that i'd like to bring together. They both have unique ID numbers but one table has zeros after "PD".
    I need to drop the zeros after the PD and perform a vlookup.


    EG.


    [TABLE="width: 256"]

    [tr]


    [TD="colspan: 2"]256PD0000001138[/TD]

    [td][/td]


    [td]

    256PD1138

    [/td]


    [/tr]


    [tr]


    [TD="colspan: 2"]256PD0000001106[/TD]

    [td][/td]


    [td]

    256PD1106

    [/td]


    [/tr]


    [tr]


    [TD="colspan: 2"]SACM0510PD00002[/TD]

    [td][/td]


    [td]

    SACM0510PD2

    [/td]


    [/tr]


    [tr]


    [TD="colspan: 2"]62PD00000002474[/TD]

    [td][/td]


    [td]

    62PD2474

    [/td]


    [/tr]


    [tr]


    [TD="colspan: 2"]62pd00000002482[/TD]

    [td][/td]


    [td]

    62pd2482

    [/td]


    [/tr]


    [tr]


    [TD="colspan: 2"]241PD0000000135[/TD]

    [td][/td]


    [td]

    241PD135

    [/td]


    [/tr]


    [tr]


    [TD="colspan: 2"]241PD0000000077[/TD]

    [td][/td]


    [td]

    241PD77

    [/td]


    [/tr]


    [tr]


    [TD="colspan: 2"]100PD0000000036[/TD]

    [td][/td]


    [td]

    100PD36

    [/td]


    [/tr]


    [tr]


    [TD="colspan: 2"]256PD0000001160[/TD]

    [td][/td]


    [td]

    256PD1160

    [/td]


    [/tr]


    [tr]


    [TD="colspan: 2"]258PD0000000004[/TD]

    [td][/td]


    [td]

    258PD4

    [/td]


    [/tr]


    [tr]


    [TD="colspan: 2"]63PD00000004095[/TD]

    [td][/td]


    [td]

    63PD4095

    [/td]


    [/tr]


    [tr]


    [TD="colspan: 2"]62PD00000002487[/TD]

    [td][/td]


    [td]

    62PD2487

    [/td]


    [/tr]


    [tr]


    [TD="colspan: 2"]256PD0000000922[/TD]

    [td][/td]


    [td]

    256PD922

    [/td]


    [/tr]


    [/TABLE]
    [TABLE="width: 128"]

    [tr]


    [TD="width: 64"][/TD]
    [TD="width: 64"][/TD]

    [/tr]


    [/TABLE]

    Hi Guys,


    Having a bit of trouble here, i'm trying to copy data from multiple tabs in one workbook to one single tab in another workbook.
    I've got the code in principle but it's over-writing each loop then all I get at the end is the final tab data, instead of all data appended.


    I have this code run when the workbook opens, all the column headers are the same in each tab......
    Hope i've been clear.

    Re: Make multiple cell changes whilst logging changes in .txt file


    Ok, i'm with you. It's tracking multiple changes now, but the previous value is not looping, only the current.


    I had "123" in cell O13. That is correct
    I had "456" in cell P14. The log is incorrect.


    P13 & O14 were blank.


    14-Aug-15 14:08:24 Matthew Schofield changed cell $O$13 in Sheet2 from '123' to '' in workbook C:\Users\mschofield\Desktop Example Code.xlsm
    14-Aug-15 14:08:24 Matthew Schofield changed cell $P$13 in Sheet2 from '123' to '' in workbook C:\Users\mschofield\Desktop Example Code.xlsm
    14-Aug-15 14:08:24 Matthew Schofield changed cell $O$14 in Sheet2 from '123' to '' in workbook C:\Users\mschofield\Desktop Example Code.xlsm
    14-Aug-15 14:08:24 Matthew Schofield changed cell $P$14 in Sheet2 from '123' to '' in workbook C:\Users\mschofield\Desktop Example Code.xlsm

    Hi All,


    I have this piece of code that will log changes that are made to cells into a .txt file located in the same place as the workbook.


    The problem i'd like to overcome is how to log the changes of multiple cells at the same time.... I.e selecting A1:A5 and hitting delete......
    Current code will bug out, so I have a message box appear to warn the user then undo the changes.......


    If anyone can guide me here it would be much appreciated.


    Code below, and workbook attached.



    Regards
    Matt

    Re: Worksheet with command button


    You can try deleting the temporary MSForms.exd files just once in these hidden temp folders:


    C:\Users\[user.name]\AppData\Local\Temp\Excel8.0\MSForms.exd
    C:\Users\[user.name]\AppData\Local\Temp\VBE\MSForms.exd



    Regards
    Matt

    Hi Guys,


    As the title says, I am having trouble with this. This is the formula I have so far:


    =SUMPRODUCT(('SPC-103R.xlsm'!Table1[Alloy]=A3)*('SPC-103R.xlsm'!Table1[Mesh Type]=B3)*('SPC-103R.xlsm'!Table1[Flux Type]=C3)*('SPC-103R.xlsm'!Table1[METAL%]=E3)*('SPC-103R.xlsm'!Table1[IPN]))



    Here's the table I reference.


    A3 B3 C3 E3


    Sn62 Type 3 NC-SMQ92H 90



    [TABLE="width: 637"]

    [tr]


    [td]

    IPN

    [/td]


    [td]

    Low Malcom

    [/td]


    [td]

    High Malcom

    [/td]


    [td]

    Low Metal% Shipping

    [/td]


    [td]

    High Metal % Shipping

    [/td]


    [td]

    Alloy

    [/td]


    [td]

    Mesh Type

    [/td]


    [td]

    Flux Type

    [/td]


    [td]

    METAL%

    [/td]


    [/tr]


    [tr]


    [td]

    81484

    [/td]


    [td]

    1850

    [/td]


    [td]

    2450

    [/td]


    [td]

    90.25

    [/td]


    [td]

    90.75

    [/td]


    [td]

    Sn63

    [/td]


    [td]

    Type 3

    [/td]


    [td]

    RMA-SMQ51AC

    [/td]


    [td]

    90.5

    [/td]


    [/tr]


    [tr]


    [td]

    81501

    [/td]


    [td]

    1525

    [/td]


    [td]

    2025

    [/td]


    [td]

    89.75

    [/td]


    [td]

    90.25

    [/td]


    [td]

    Sn63

    [/td]


    [td]

    Type 3

    [/td]


    [td]

    RMA-SMQ51AC

    [/td]


    [td]

    90

    [/td]


    [/tr]


    [tr]


    [td]

    81506

    [/td]


    [td]

    1800

    [/td]


    [td]

    2400

    [/td]


    [td]

    90.25

    [/td]


    [td]

    90.75

    [/td]


    [td]

    Sn62

    [/td]


    [td]

    Type 3

    [/td]


    [td]

    RMA-SMQ51AC

    [/td]


    [td]

    90.5

    [/td]


    [/tr]


    [tr]


    [td]

    81609

    [/td]


    [td]

    1850

    [/td]


    [td]

    2450

    [/td]


    [td]

    90.25

    [/td]


    [td]

    90.75

    [/td]


    [td]

    Sn63

    [/td]


    [td]

    Type 3

    [/td]


    [td]

    RMA-SMQ51AC

    [/td]


    [td]

    90.5

    [/td]


    [/tr]


    [tr]


    [td]

    81648

    [/td]


    [td]

    1850

    [/td]


    [td]

    2450

    [/td]


    [td]

    90.25

    [/td]


    [td]

    90.75

    [/td]


    [td]

    Sn63

    [/td]


    [td]

    Type 3

    [/td]


    [td]

    NC-SMQ51SC

    [/td]


    [td]

    90.5

    [/td]


    [/tr]


    [tr]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [/tr]


    [/TABLE]

    Re: Toggle button to refresh formulas


    Hello,


    This should work for you I imagine. Although I believe 5 seconds is a pretty frequent interval and suggest a longer one, or a button to trigger refresh.


    This will refresh every 5 seconds.

    Code
    ActiveWorkbook.RefreshAll
    
    
    
    
    alertTime = Now + TimeValue("00:00:05") 'hh:mm:ss
        Application.OnTime alertTime, "Refresh"

    Re: Find empty textbox on userform


    I think what you're wanting is something along these lines?


    Re: VBA code to automatically send email with specific attachment and include signatu


    You can just add another .Attachments.Add "blah blah" for additional files.


    As for your network mapping issue there are several ways you could deal with that.


    The easiest would be to get everyone to standardize and use the same letter.
    You could use an If statement to check if the drive exists and loop until found.


    Or you could use this code to find the specific drive letter.
    http://excelexperts.com/list-and-type-of-drives-vba


    Hope that helps.