+ Reply to Thread
Results 1 to 4 of 4

Why won't my 'OR' formula work for all of my rows?

  1. #1
    Registered User
    Join Date
    09-21-2018
    Location
    Redondo Beach, CA
    MS-Off Ver
    2016
    Posts
    13

    Why won't my 'OR' formula work for all of my rows?

    This seems so simple but I can't figure it out.

    I am trying to use the OR function with an array. My formula reads =OR(E2='Freight Forward'!$A$2:$A$28)

    Basically i'm trying to check if the text in a cell (E2) is equal to any of the values in the A column of the sheet named 'Freight Forward'.

    When I try and drag that formula to auto-fill the whole column, it only works for the first 28 rows and then I start getting #VALUE! returned. I thought the $ symbols would keep the reference to the range from moving and it would auto-fill my whole column, what am I doing wrong?

    Thanks.
    Last edited by stell64; 09-21-2018 at 05:21 PM.

  2. #2
    Forum Contributor
    Join Date
    09-19-2018
    Location
    USA
    MS-Off Ver
    2016
    Posts
    208

    Re: Why won't my 'OR' formula work for all of my rows?

    Could you use this instead?

    =ISNUMBER(MATCH(E2,'Freight Forward'!$A$2:$A$28,0))

    Should return TRUE or FALSE.

  3. #3
    Registered User
    Join Date
    09-21-2018
    Location
    Redondo Beach, CA
    MS-Off Ver
    2016
    Posts
    13

    Re: Why won't my 'OR' formula work for all of my rows?

    Worked!

    Thank you so much. Any idea why 'OR' wasn't working? It was driving me crazy.

  4. #4
    Forum Contributor
    Join Date
    09-19-2018
    Location
    USA
    MS-Off Ver
    2016
    Posts
    208

    Re: Why won't my 'OR' formula work for all of my rows?

    The OR function you have should work as long as you 'array-enter' the formula into the cell (and then fill down/up/etc. as needed). Array-entering a formula requires using CTRL+SHIFT+ENTER, not just ENTER. If you edit the formula in any array-entered cell, you must remember to confirm it using C+S+E again.

    When done properly, an array-entered formula will have braces { } around it.

+ 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. [SOLVED] Why does Index and Match Formula work for Named Range.. Except The Last Rows?
    By jrtaylor in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-27-2018, 02:26 PM
  2. Replies: 2
    Last Post: 01-31-2018, 08:49 AM
  3. [SOLVED] Need a COUNTIF formula to work with Excel 2000. Not confident it will work?
    By g1terra in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-06-2017, 01:59 AM
  4. [SOLVED] How to make the macro work for all rows in the work sheet
    By Valli nayaki in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-18-2013, 10:43 PM
  5. Replies: 0
    Last Post: 11-12-2012, 04:49 AM
  6. Copy rows from work sheets to combine to one work sheet based on cell value
    By joemcmillen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-11-2008, 05:04 PM
  7. Replies: 2
    Last Post: 07-11-2006, 11:15 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