Posts by wonka1234

    Re: VBA, pulling values together to do a comparison


    Do I combine above code to my original?



    Or is this fine on its own? (keep in mind im opening .txt files that are piped, (not delimited))


    Running on its own I get error on :

    Code
    [COLOR=blue]Set[/COLOR][COLOR=#333333] rWB1 = wb1.Sheets(1).Range("A2").CurrentRegion [/COLOR][COLOR=#006400]' may have to change sheet[/COLOR]


    What is currentRegion?

    Re: VBA, pulling values together to do a comparison


    Quote from StephenR;774447

    Can you answer my previous question please. I don't understand this line, it errors for me

    Code
    errCheck = UserInput.FileDialogDictionary(fileNames)



    Sorry Stephen , User Input is just a file picker functionI have in another module.
    I can post that too, Name the module 'UserInput' :


    Re: VBA, pulling values together to do a comparison


    Quote from Infomage;774260

    When you say you want to compare the numbers in column A, what do you mean exactly?


    You might mean that you want to indicate elsewhere whether the same or different values appear on each row, or perhaps determine whether the number on one sheet appears anywhere in the other sheet(s)...


    Please clarify. The more detail the better. :)



    Sorry.


    So both files are identical set, Column A has #'s. When I say i want to compare, I mean the difference between them.
    Now each number has a country and city assigned to it, B and C respectively. Also in both sheets.
    Now they are not in order, so new york usa may be in row 1 in sheet A, and row 30 in sheet B, So there must be some sort of lookup? Correct?


    The numbers are not identical on both workbooks, but the citys and countries are. if they arent the result should just be N/A or something.


    Is that more helpful?

    Hi,


    my current code does


    1) Opens my desired workbooks via a picker button on my master workbook (Just need to compare 2 at once)
    2) Delimits by pipe
    3) concatenates columns B and C (into col D)


    I am stuck here, my goal is to compare column A numbers from both opened workbooks on my master sheet.


    Should I vlookup my values from one workbook to another and bring in the numbers and subtract?


    How can I get my values in my master sheet and do a nice little subtraction? its tough, like I looked at some code to put my sheets into master but you have to state the master sheet and the current sheets to copy (sheet names will always be dynamic names so this kind is useless)


    Any help would be appreciated, Sorry i am a beginner.


    Current code:


    Hi,


    I would like to make my spreadsheet easier to read and just more organized.


    Any links/pics or spreadsheet examples would be appreciated.


    My current format goes node by node format and then columns across to represent the data.


    something like this:


    [TABLE="class: grid, width: 500"]

    [tr]


    [td][/td]


    [td][/td]


    [td][/td]


    [td]

    Moderators

    [/td]


    [td]

    # of posts

    [/td]


    [td]

    Active users

    [/td]


    [/tr]


    [tr]


    [td]

    OZ

    [/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [/tr]


    [tr]


    [td][/td]


    [td]

    Excel

    [/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [/tr]


    [tr]


    [td][/td]


    [td][/td]


    [td]

    excel gen

    [/td]


    [td]

    x, y , z

    [/td]


    [td]

    1000

    [/td]


    [td]

    5

    [/td]


    [/tr]


    [tr]


    [td][/td]


    [td][/td]


    [td]

    excel vba

    [/td]


    [td]

    a, b , c

    [/td]


    [td]

    500

    [/td]


    [td]

    10

    [/td]


    [/tr]


    [tr]


    [td][/td]


    [td][/td]


    [td]

    excel formula

    [/td]


    [td]

    c , y , x

    [/td]


    [td]

    5000

    [/td]


    [td]

    15

    [/td]


    [/tr]


    [tr]


    [td][/td]


    [td]

    Access

    [/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [/tr]


    [/TABLE]


    and so on, It is many nodes I have so it can be quite hard to read it all. Don't really want to pivot it as some of the column headers and data inside are quite complex.


    Thanks

    My current function checks a file path and returns its timestamp, ex: A1 has Oz/Grid.csv, use the function in B1 and get the time it was created.


    However if my file is Oz/Grid_*.csv in A1 , the function returns a default value , im guessing because there are many files that the wildcard could apply to . So because the wildcard checks for every file with that name and usually the folder that contains the file I look for has file names such as Oz/Grid_1.csv , Oz/Grid_2.csv, etc.


    How can I get this function to search for the max wildcard value and return that instead of returning a default value?



    any help would be greatly appreciated.
    Thanks

    Re: Pivot, Summarize values by Maximum, 24-hour clock


    Thanks, not really sure why its missing some of them, your 93 and 95 change worked well, it just went to next day, maybe the post 95 has to be reflected in 99.



    think this was able to do it:



    Say if a downtime happened twice a day, can we name these 1 and 2 , and number them per day?

    Re: Pivot, Summarize values by Maximum, 24-hour clock


    Thanks could you explain this more? what I get from it is that it only inserts down time for when stages are the same. So single stages wont have time (vegas won't have down time)


    This works good but now it continues for each business day lol, aka down time after seattle is added till till the next day start.