+ Reply to Thread
Results 1 to 9 of 9

Excel formula check multiple condition and if match return hyperlink ...

  1. #1
    Registered User
    Join Date
    01-17-2012
    Location
    Kuala Lumpur
    MS-Off Ver
    Excel 2010
    Posts
    23

    Excel formula check multiple condition and if match return hyperlink ...

    In my Excel, I have created 2 sheet.

    Sheet 1 : folderPath
    Sheet2 : recordList

    Please refer to the file attached.

    In my recordList, I need to have an automatic HYPERLINK on a file/document if a certain cell meets the conditions or criteria as below:

    If State match with State in folderPath
    If Code match with Code in folderPath
    If Date Received match with Year in folderPath

    than in Hyperlink cell auto create Link to the said file is created.

    Example Hyperlink : d:/path1/path2/path3/IN/M1/23/1001.pdf

    How can I achieve that ....

    Thank you ...

    Regards,
    NZ
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    06-09-2010
    Location
    Zaragoza, Spain
    MS-Off Ver
    Excel 2010, 365
    Posts
    6

    Re: Excel formula check multiple condition and if match return hyperlink ...

    Try the attachment with an auxiliary column in yellow.

    Regards,
    Pedro Wave
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    01-17-2012
    Location
    Kuala Lumpur
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Excel formula check multiple condition and if match return hyperlink ...

    Quote Originally Posted by pedrowave View Post
    Try the attachment with an auxiliary column in yellow.

    Regards,
    Pedro Wave
    Niceeeeeeee .... Btw, can we replace the naming from full path to "Link" ...

    Regards.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Excel formula check multiple condition and if match return hyperlink ...

    Add a friendly name:

    =HYPERLINK(INDEX(folderPath!$E$7:$E$11,$A8)&INDEX(folderPath!$F$7:$F$11,$A8)&$B8&INDEX(folderPath!$G$7:$G$11,$A8),"Link")

    e.g.

    =HYPERLINK(INDEX(folderPath!$E$7:$E$11,$A8)&INDEX(folderPath!$F$7:$F$11,$A8)&$B8&INDEX(folderPath!$G$7:$G$11,$A8),B8&".pdf")

    @pedrowave

    Next time, please include the solution in the body of the post as well as in the attachment. Thanks.
    Attached Files Attached Files
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    06-09-2010
    Location
    Zaragoza, Spain
    MS-Off Ver
    Excel 2010, 365
    Posts
    6

    Re: Excel formula check multiple condition and if match return hyperlink ...

    Ali, the problem is that I work with Excel in Spanish and I have to translate the Excel formulas into English, which is a bit of a hassle.

    I'll keep that in mind next time.

    Regards,
    Pedro Wave

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Excel formula check multiple condition and if match return hyperlink ...

    Try bookmarking this site:

    https://en.excel-translator.de/trans...b#comment-9534

    No more than two or three clicks to get the translation done.

  7. #7
    Registered User
    Join Date
    06-09-2010
    Location
    Zaragoza, Spain
    MS-Off Ver
    Excel 2010, 365
    Posts
    6

    Re: Excel formula check multiple condition and if match return hyperlink ...

    It should be noted that the row number is obtained with the formula in cell recordList!A8:

    =MATCH($C$4&YEAR($E8)&$D8,folderPath!$B$7:$B$11 & folderPath!$C$7:$C$11 & folderPath!$D$7:$D$11,0)

    Regards,
    Pedro Wave

  8. #8
    Registered User
    Join Date
    01-17-2012
    Location
    Kuala Lumpur
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Excel formula check multiple condition and if match return hyperlink ...

    Quote Originally Posted by AliGW View Post
    Add a friendly name:

    =HYPERLINK(INDEX(folderPath!$E$7:$E$11,$A8)&INDEX(folderPath!$F$7:$F$11,$A8)&$B8&INDEX(folderPath!$G$7:$G$11,$A8),"Link")

    e.g.

    =HYPERLINK(INDEX(folderPath!$E$7:$E$11,$A8)&INDEX(folderPath!$F$7:$F$11,$A8)&$B8&INDEX(folderPath!$G$7:$G$11,$A8),B8&".pdf")

    @pedrowave

    Next time, please include the solution in the body of the post as well as in the attachment. Thanks.
    Hi @AliGW
    Thank you for your help ....

    Regards,
    NickzNickz

  9. #9
    Registered User
    Join Date
    01-17-2012
    Location
    Kuala Lumpur
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Excel formula check multiple condition and if match return hyperlink ...

    Hi @pedrowave,

    Thank you for your help too ...

    Regards,
    NickzNickz

+ 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. Replies: 5
    Last Post: 03-14-2020, 03:58 AM
  2. Replies: 7
    Last Post: 11-15-2019, 04:30 PM
  3. [SOLVED] Formula to check column and return multiple values
    By DutchieAMC in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-12-2019, 03:58 AM
  4. Replies: 5
    Last Post: 10-16-2016, 02:33 AM
  5. Replies: 2
    Last Post: 05-27-2015, 12:45 AM
  6. Replies: 8
    Last Post: 11-06-2014, 06:19 PM
  7. [SOLVED] Need a formula that can check multiple criteria and return a value.
    By DeeJay256 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 11-28-2012, 09:28 AM

Tags for this Thread

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