+ Reply to Thread
Results 1 to 10 of 10

Formula to check multiple values?! I'm stuck! :(

  1. #1
    Registered User
    Join Date
    03-11-2014
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    27

    Formula to check multiple values?! I'm stuck! :(

    Hi all,
    I'd appreciate some guidance on this one if possible!

    I have a spreadsheet of item codes from my business and I need to know if we have high resolution images of them. Please refer to the attachment.

    In Column A I have a list of products we SHOULD have hi-res images for.
    In Column C I have a list of images that we already have.

    I can find which images we have using VLOOKUP, that's not a problem. But before I do that I need to be able to tell which of the images are high res.

    Is there a formula that would tell me if, say, C2 has the text "jpg" somewhere in the cell, and if the corresponding file size for that particular cell in column E is lower than 4MB? I need a formula that will tell me if both of those "ifs" are true, as this means the image is too low res and needs to be removed.

    I hope this makes sense, if you need anything else please let me know!
    Thanks in advance for any help you can give!

    - Skye
    Attached Files Attached Files
    Last edited by Miss Molko; 07-15-2014 at 05:39 AM. Reason: Made no sense lol

  2. #2
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: Formula to check multiple values?! I'm stuck! :(

    Hi
    Try this formula in F2 in your sample and copy down. Adjust as necessary.

    =IF(AND(MID(E2,1,FIND("M",E2,1)-2)>"4.0",RIGHT(C2,3)="jpg"),"Yes","No")

    Good luck.
    Tony

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Formula to check multiple values?! I'm stuck! :(

    Hi there. Is this what you wanted?

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Formula to check multiple values?! I'm stuck! :(

    Try this.....

    Please Login or Register  to view this content.
    This formula will return True or False as per your conditions.
    **I have changed some products in column A.

    Is this what you are trying to achieve?
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  5. #5
    Registered User
    Join Date
    03-11-2014
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Formula to check multiple values?! I'm stuck! :(

    It worked! Thanks so much for your help!

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Formula to check multiple values?! I'm stuck! :(

    Which one worked??

  7. #7
    Registered User
    Join Date
    03-11-2014
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Formula to check multiple values?! I'm stuck! :(

    I tried ARGK's idea as soon as I received it and it was successful. Thanks all for your replies!

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Formula to check multiple values?! I'm stuck! :(

    Odd. I thought it wasn't what you wanted, as it showed "No" for any tif images and also for jpgs less than 4 MB.

  9. #9
    Registered User
    Join Date
    03-11-2014
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Formula to check multiple values?! I'm stuck! :(

    Quote Originally Posted by Glenn Kennedy View Post
    Odd. I thought it wasn't what you wanted, as it showed "No" for any tif images and also for jpgs less than 4 MB.
    Yeah it did, at first I thought it wasn't going to work but then I swapped the > for a <, and changed "No" to "High" and "Yes" to "Low" and it worked out okay.

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Formula to check multiple values?! I'm stuck! :(

    If modified like that, then it does work. However "search" might be better than "find" (it's not case sensitive and a lower case m gives you an "#value" error in the version you're now using.

+ 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. possible to check for file in multiple folders, then check for values in specific cells?
    By mattheritage in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-04-2014, 08:33 AM
  2. Replies: 5
    Last Post: 08-04-2013, 09:49 AM
  3. lookup or check for multiple values in a single row
    By bajdr47 in forum Excel General
    Replies: 1
    Last Post: 06-11-2010, 04:42 PM
  4. Check range of cells for multiple values.
    By proepert in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-20-2010, 01:17 AM
  5. Stuck - multiple argument formula COUNT
    By vanwinks in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-15-2007, 12:01 PM

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