+ Reply to Thread
Results 1 to 9 of 9

Small issue function offset

  1. #1
    Registered User
    Join Date
    11-10-2022
    Location
    Berlin
    MS-Off Ver
    office 365 student
    Posts
    58

    Thumbs up Small issue function offset

    Hello

    I have a problem with the offset function.

    Follows attached


    if you type numbers in sequence, those numbers must be entered in another place. If it is not a sequence, it should appear -

    The formulas below work, but if you type the number 1, this number will appear, even if the number 2 is not next


    =IF(OR(IFERROR(C5=OFFSET(C5,0,-1)+1;0),C5=D5-1),C5,"-")

    =IF(OR(C7-B7=1,D7-C7=1),C7,"-")


    If anyone can help me, I would appreciate


    Thanks
    Attached Files Attached Files
    Last edited by alexsantos1990; 02-10-2023 at 08:18 AM.

  2. #2
    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,064

    Re: Small issue function offset

    No, not offset. it's volatile and recalculates endlessly:

    =IFERROR(IF(OR(D5=C5+1,1/(1/B5)=C5-1),C5,""),"")

    copied across.
    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

  3. #3
    Registered User
    Join Date
    11-10-2022
    Location
    Berlin
    MS-Off Ver
    office 365 student
    Posts
    58

    Re: Small issue function offset

    Hello Glenn Kennedy,

    Thanks for answer

    It still not working properly. There is a issue with number 1. The number on column K is not appearing, it only appears from column L
    Last edited by alexsantos1990; 02-10-2023 at 10:05 AM.

  4. #4
    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,064

    Re: Small issue function offset

    But you said that the 1 should NOT appear???!!! I do not understand you. Repost your sample file with the expected answer manually entered by you.
    Attached Images Attached Images

  5. #5
    Forum Contributor
    Join Date
    05-03-2021
    Location
    Nashville
    MS-Off Ver
    MS Office 365
    Posts
    184

    Re: Small issue function offset

    Breaking down your formula you want
    =IFERROR(C5=OFFSET(C5,0,-1)+1,0)
    to be true OR you want
    =C5=D5-1 to be true not both. Only one has to be true for "C5" to trigger.
    Other wise it will put "-"

    if you want BOTH conditions to be bet to place "C5" you need to use AND.

    However it appears you want Both conditions to be met for K5, but then go back to "OR" and trigger when only one of the conditions are met
    That's incredibly confusing because it sounds like you want a formula to look back on itself to make sure it is still "incrementally increasing"
    That is circular reasoning.

    Since the number before 1 is 0, it is counting 1 as "TRUE".
    Put in any other number in that field and it will not show up. It will put the "-" because neither conditions are met.
    Your formula works as intended, UNLESS you just really hate the number 1 in which case you can make a nested IF statement saying

    =IF(C5=1,"Screw You, I hate number 1",IF(OR(IFERROR(C5=OFFSET(C5,0,-1)+1,0),C5=D5-1),C5,"-"))

  6. #6
    Registered User
    Join Date
    11-10-2022
    Location
    Berlin
    MS-Off Ver
    office 365 student
    Posts
    58

    Re: Small issue function offset

    sorry Glenn Kennedy, I didn't explain it right

    The number 1 must appear if the next number is the number 2.

    So if I type:

    1, 2, 100, 140, 145, 146, 200

    The numbers that should appear are (all sequences):

    1, 2, 145, 146

    With the previous formulas, the number 1 appears in anyway, being a sequence or not. I'm trying to get all the numbers in sequence

    If I type

    1, 200, 205, 210, 300, 301

    The numbers that should appear are (all sequences):
    300, 301

    in this case, the number 1 will not appear because the next number is the number 200

    Attachment 817190

  7. #7
    Registered User
    Join Date
    11-10-2022
    Location
    Berlin
    MS-Off Ver
    office 365 student
    Posts
    58

    Re: Small issue function offset

    hello thenewkidd,

    thanks for answer. I dont hate number 1 kkkkkkkkkk

    the number should appear if the next number is 2. If you open the sample you will see that it is working good, but when you type the number 1, the number 1 will always appear

  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,064

    Re: Small issue function offset

    Try it now.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    11-10-2022
    Location
    Berlin
    MS-Off Ver
    office 365 student
    Posts
    58

    Re: Small issue function offset

    hi Glenn Kennedy.

    It is perfect

    thanks a lot

    Have a great weekend

+ 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] Offset Indirect Function Issue
    By Bryan.Pagenkopf in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-10-2019, 03:48 PM
  2. [SOLVED] having hopefully small issue with a lookup formula/function in vba
    By hopefulhart in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-12-2015, 01:02 PM
  3. [SOLVED] Really Weird Issue With An OFFSET Function
    By nevi in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-13-2015, 10:00 AM
  4. [SOLVED] Dynamic Range For "SMALL" Function Then Offset LookUp
    By david.nicholls in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-08-2013, 07:15 AM
  5. [SOLVED] Issue with returning proper row number using =Small Function
    By Sardaukar in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 04-13-2013, 09:21 AM
  6. offset and large function issue
    By jw01 in forum Excel General
    Replies: 2
    Last Post: 07-13-2011, 06:52 PM
  7. Large/Small Function Issue
    By ihdalton in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-28-2009, 10:31 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