+ Reply to Thread
Results 1 to 3 of 3

Formula to answer Y/N to a value changing (More than once) in an array?

  1. #1
    Registered User
    Join Date
    11-21-2011
    Location
    boston, ma
    MS-Off Ver
    Excel 2007
    Posts
    25

    Formula to answer Y/N to a value changing (More than once) in an array?

    Please help if possible.

    For example:

    A1 A2 A3 A4 A5 A6

    1 1 3 3 3 1


    Is there a formula to answer whether the values in Array B1:B6 change more than once moving from left to right? It could be a Yes/No solution, or something else.

    Thanks in advance!

    -Andrew

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Formula to answer Y/N to a value changing (More than once) in an array?

    sorry, i dont understand your request? B1:B6 moves downwards, not left to right?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Formula to answer Y/N to a value changing (More than once) in an array?

    Try this in A7
    =IF((SUMPRODUCT((A2:A7<>A1:A6)*1)-1)>1,TRUE,FALSE)

    Hope this helps

    Edit-
    oops...wrong range..Change the A# refs to B#

    and FDibbins is correct, this will look DOWN the list (top-bottom,not left-right)
    Last edited by dredwolf; 12-17-2012 at 11:21 PM.
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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