+ Reply to Thread
Results 1 to 4 of 4

If cells A1:A5 have the same value as B1:B5 then return Yes

  1. #1
    Registered User
    Join Date
    06-21-2019
    Location
    Hull, England
    MS-Off Ver
    2016
    Posts
    4

    Question If cells A1:A5 have the same value as B1:B5 then return Yes

    Hi, I am creating a spreadsheet and in the spreadsheet I need cell C1 to return the value "Yes" if A1:A5 has the same value as B1:B5 else return "No". I have tried the following formula in C1 with no joy =IF(AND(A5:A5=B5:B5), "Yes", "No")
    Please help!

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.83 for Mac MS 365
    Posts
    8,480

    Re: If cells A1:A5 have the same value as B1:B5 then return Yes

    if numbers are in those cells then you could use =IF(SUM(A1:A5)=SUM(B1:B5),"Yes","No") but the question is are you also wanting them in the same order?
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    06-21-2019
    Location
    Hull, England
    MS-Off Ver
    2016
    Posts
    4

    Re: If cells A1:A5 have the same value as B1:B5 then return Yes

    That has worked perfectly, thank you so much!

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.83 for Mac MS 365
    Posts
    8,480

    Re: If cells A1:A5 have the same value as B1:B5 then return Yes

    you're welcome, AND thank you for the rep!

+ 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: 8
    Last Post: 05-16-2013, 05:28 PM
  2. Replies: 2
    Last Post: 11-12-2012, 06:26 AM
  3. print only formulated cells that return numbers rather than cells that return blank
    By jaganath in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-24-2010, 03:46 PM
  4. Replies: 3
    Last Post: 11-22-2007, 07:53 AM
  5. Replies: 6
    Last Post: 09-06-2005, 04:05 AM
  6. Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  7. Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  8. Replies: 2
    Last Post: 07-19-2005, 12:05 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