+ Reply to Thread
Results 1 to 23 of 23

offset form address in cell referenced

  1. #1
    Registered User
    Join Date
    11-08-2017
    Location
    miami, florida
    MS-Off Ver
    2010
    Posts
    35

    offset form address in cell referenced

    Why doesn't this work? OFFSET(ADDRESS(1,MATCH(TRUE,INDEX(A1:G1<=65,0),),4,1),0,1)
    Test Scores.xlsx
    Basically my goal is to figure out a formula for conditional formatting the names to turn red if any two adjacent scores are below =<65.

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: offset form address in cell referenced

    So... anything in B1:G1 range less than or equal to 65 turn A1 red?

    You can just use Countif.
    =COUNTIF($B1:$G1,"<=65")>1
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  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
    43,984

    Re: offset form address in cell referenced

    This will work if your criterion is that 2= ADJACENT cells wihin each row are <= 65 (that is what I took from your description).

    =MAX(FREQUENCY(IF(B1:G1<=65,IF(B1:G1<>"",COLUMN(B1:G1))),IF(B1:G1>=65,COLUMN(B1:G1))))>1
    Attached Files Attached Files
    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
    Registered User
    Join Date
    11-08-2017
    Location
    miami, florida
    MS-Off Ver
    2010
    Posts
    35

    Re: offset form address in cell referenced

    i got the offset to work with indirect. now i entered this into conditional formating: =if(OFFSET(ADDRESS(1,MATCH(TRUE,INDEX(A1:G1<=65,0),),4,1),0,1)<=65)
    it get an errror window.
    how do i fix this

  5. #5
    Registered User
    Join Date
    11-08-2017
    Location
    miami, florida
    MS-Off Ver
    2010
    Posts
    35

    Re: offset form address in cell referenced

    thanks but i would like a simpler formula; an adjustment to my design because im also trying to learn and understand

  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
    43,984

    Re: offset form address in cell referenced

    Who are you talking to?

  7. #7
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: offset form address in cell referenced

    I'm assuming you Glenn

    I think your interpretation makes more sense.

  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
    43,984

    Re: offset form address in cell referenced

    Be clear: IS your requirement that 2 or more ADACENT cells have to be <=65?

  9. #9
    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
    43,984

    Re: offset form address in cell referenced

    Quote Originally Posted by CK76 View Post
    I'm assuming you Glenn

    I think your interpretation makes more sense.
    I assume so, too... but who knows??

  10. #10
    Registered User
    Join Date
    11-08-2017
    Location
    miami, florida
    MS-Off Ver
    2010
    Posts
    35

    Re: offset form address in cell referenced

    Nevermind you guys. i got it myself with some googling.

  11. #11
    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
    43,984

    Re: offset form address in cell referenced

    So... share your answer for the benefit of others.

  12. #12
    Registered User
    Join Date
    11-08-2017
    Location
    miami, florida
    MS-Off Ver
    2010
    Posts
    35

    Re: offset form address in cell referenced

    it was to glenn. yes correct. i got it with this in conditional formating:
    =OFFSET(INDIRECT(ADDRESS(MATCH(A2,A:A,0),MATCH(TRUE,INDEX(A2:G2<=65,0),),4,1)),0,1)<=65.
    these are all basic formulas. i dont know how to use frequent and you have tons of parenthesis.

  13. #13
    Registered User
    Join Date
    11-08-2017
    Location
    miami, florida
    MS-Off Ver
    2010
    Posts
    35

    Re: offset form address in cell referenced

    I know you guys write your own formula to answer me but im just trying to tweak my own to work and understand it, not to get a quick answer that is way over my head

  14. #14
    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
    43,984

    Re: offset form address in cell referenced

    Does it work??

    I can't seem to get it working.
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    11-08-2017
    Location
    miami, florida
    MS-Off Ver
    2010
    Posts
    35

    Re: offset form address in cell referenced

    I tried both of ours, glenn. neither work. i added and(not(isblank(b3).Test Scores.xlsx
    I show some examples.

  16. #16
    Registered User
    Join Date
    11-08-2017
    Location
    miami, florida
    MS-Off Ver
    2010
    Posts
    35

    Re: offset form address in cell referenced

    Test Scores.xlsx
    for some reason it thinks that all i care about is that 1st column is higher than 65 and if the whole row is full

  17. #17
    Registered User
    Join Date
    11-08-2017
    Location
    miami, florida
    MS-Off Ver
    2010
    Posts
    35

    Re: offset form address in cell referenced

    Im playing with it and its totally senseless

  18. #18
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: offset form address in cell referenced

    deleted.....
    Last edited by protonLeah; 12-22-2017 at 12:49 AM.
    Ben Van Johnson

  19. #19
    Registered User
    Join Date
    11-08-2017
    Location
    miami, florida
    MS-Off Ver
    2010
    Posts
    35

    Re: offset form address in cell referenced

    its all good thanks guys. i used two "helper columns and hid them.i added a if clause that doesnt count blanks as low scores

  20. #20
    Registered User
    Join Date
    11-08-2017
    Location
    miami, florida
    MS-Off Ver
    2010
    Posts
    35

    Re: offset form address in cell referenced

    Actually it didnt work. i ended up deleting the formulas. any ideas? Test Scores.xlsx

  21. #21
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,459

    Re: offset form address in cell referenced

    Is it same question?
    https://www.excelforum.com/excel-new...n-a-range.html
    Can my solution in that topic help here?
    Quang PT

  22. #22
    Registered User
    Join Date
    11-08-2017
    Location
    miami, florida
    MS-Off Ver
    2010
    Posts
    35
    Quote Originally Posted by bebo021999 View Post
    Is it same question?
    https://www.excelforum.com/excel-new...n-a-range.html
    Can my solution in that topic help here?
    Yes thanks. It worked

  23. #23
    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
    43,984

    Re: offset form address in cell referenced

    Actually, no it didn't work. Bebo's result produces errors. To date, the only answer that seems to work is mine. Businpro, you said that mine failed - can you show some examples of this???

    My formula is an array formula. Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...

    However, when used as a CF formula, it needs to be modified to the CF format:

    =MAX(FREQUENCY(IF(B2:K2<=65,IF(B2:K2<>"",COLUMN(B2:K2))),IF(B2:K2>=65,COLUMN(B2:K2))))>1

    when used as CF, it does NOT need to be arry entered.
    Attached Files Attached Files

+ 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. Sum(Offset(Cell(address - not working
    By carrach in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-29-2016, 09:11 AM
  2. Replies: 9
    Last Post: 04-12-2015, 07:20 PM
  3. INDIRECT OFFSET Referenced column
    By mattbarb in forum Excel General
    Replies: 2
    Last Post: 06-27-2014, 11:53 AM
  4. [SOLVED] OFFSET a cell address from a match result
    By Solidstan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-25-2013, 04:04 PM
  5. [SOLVED] Named Button to Offset Referenced Ranges in workbook when clicked
    By Lungfish in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-01-2013, 06:52 PM
  6. Replies: 2
    Last Post: 05-24-2012, 03:44 AM
  7. How to display referenced cell address in a cell?
    By Domyzon in forum Excel General
    Replies: 9
    Last Post: 03-22-2012, 07:56 AM

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