+ Reply to Thread
Results 1 to 7 of 7

Find Fail And Place Link Same Row In Column 1

  1. #1
    Forum Contributor
    Join Date
    12-22-2004
    Location
    Kokomo, Indiana
    Posts
    236

    Question Find Fail And Place Link Same Row In Column 1

    I have a sample file with data which has test failures. I would like to find the last incident of a failure denoted by the word in a cell labeled Failed. A row may contain multiple Failed results but the last one reading from left to right in the cell which is most important. I would like to copy a link from the last cell in that row with the "Failed" and copy a link into the first column of that row. Note only rows which have a Failed in column Z need be checked. Note, cell A10 has a sample of what I would like as the end state. Those rows with a cell in column Z which do not have the word Failed, that row can be ignored. However, if a "Failed" is found in column Z the entire row must be searched for the last "Failed". Finally, I request this all be done in VBA with nearly unlimited rows and columns which can go past 3000 columns.

    Tony
    Attached Files Attached Files

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Find Fail And Place Link Same Row In Column 1

    It's possible.
    Just a question,. the word Failed in Z is this your manual action?
    If can be added with a formula.
    What do you mean with 'copy a link from that cell...' ?
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Find Fail And Place Link Same Row In Column 1

    I got that too, you want a hyperlink to that cell if the count of Failed is >0 and the the last cell in that row with failed.
    First you always count from last to first in a loop makes it 'faster'
    I'll see if I van do it for you.

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Find Fail And Place Link Same Row In Column 1

    Try this
    Press the green image to run the macro, the statusbar shows the progress
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    12-22-2004
    Location
    Kokomo, Indiana
    Posts
    236

    Re: Find Fail And Place Link Same Row In Column 1

    This is very close. It doesn't work as downloaded. I can see the progress status change, but the links aren't added to col A. I also noticed the lstRow variable has SpecialCells(xlCellTypeLastCell).column. Almost there.....thanks.

  6. #6
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Find Fail And Place Link Same Row In Column 1

    No problem here, after the macro has run and I click the Failed in Column A it takes me to the last cells in that row where the text reads Failed.

  7. #7
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Find Fail And Place Link Same Row In Column 1

    Okay, I am reading from right to left, well, just turn the loop around instead of lstrow to 2 step -01 2 to lstrow
    A little logic of your own ...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. find the minimum value in a range or Fail text
    By MTC2016 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-09-2017, 11:30 AM
  2. Macro Link to word doc is changing and causing it to fail.
    By taylorsm in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-23-2016, 09:29 AM
  3. [SOLVED] how to create furmula to find pass or fail
    By jamba in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 07-22-2014, 12:11 AM
  4. [SOLVED] Need a formula for pass/fail based on no. of Y answers but automatically fail if 3a is N
    By Researcher1111 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-15-2013, 10:20 PM
  5. [SOLVED] Find MAX values in one column (A) and place data in another column next to the MAX value
    By coach.32 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-14-2013, 09:14 PM
  6. [SOLVED] Find the first blank cell in a column and place value
    By ABSTRAKTUS in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-27-2013, 12:12 AM
  7. Range.Find to find column and place value in next available cell in one line
    By davegugg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-02-2011, 10:41 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1