+ Reply to Thread
Results 1 to 7 of 7

Offset Problem

  1. #1
    Registered User
    Join Date
    02-20-2013
    Location
    Los Angeles, California
    MS-Off Ver
    Excel 2010
    Posts
    43

    Offset Problem

    I'm trying to have a list of event sponsors automatically generate from the full RSVP list. I copied my formula from another spreadsheet that works perfectly and modified it for the sponsor criteria instead of the original date criteria. It worked when I had one sponsor on the second line, but failed when I added another sponsor to the list. Some experimentation reveals that it works as long as I have sponsors only on the first two lines, if I add a sponsor anywhere else, it fails. I can tell from running Evaluate Formula that the failure is caused by the offset section of the formula, but I can't figure out how to fix it. I tried changing the COUNT reference from the actual section to the full column as in the original, but that made no difference. The current and original formulas are below and a sample workbook is attached. Thanks in advance for any help.

    Current formula (Music!A9:A21 on sample):
    {=IFERROR(INDEX(Attendees!$A$3:$A$23,SMALL(IF(Attendees!$F$3:$F$23<>0,ROW(OFFSET(Attendees!$A$1,0,0,COUNT(Attendees!$A$3:$A$23)+2,1))),ROWS($A$9:A9))),"")}

    Original formula from another sheet:
    {=IFERROR(INDEX('All Donations'!$A$7:$A$26,SMALL(IF('All Donations'!$C$7:$C$1623>=(EOMONTH($B$3,-1)+1),IF('All Donations'!$C$7:$C$1623<=$B$3,ROW(OFFSET('All Donations'!$A$1,0,0,COUNT('All Donations'!$A:$A)+6,1)))),ROWS($A$26:A26))),"")}
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Offset Problem

    Use this array formula instead:

    =IFERROR(INDEX(Attendees!$A$1:$A$23,SMALL(IF(LEN(Attendees!$F$1:$F$23)=1,ROW($A$1:$A$23)),ROWS($A$1:$A1))),"")
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    02-20-2013
    Location
    Los Angeles, California
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Offset Problem

    Thanks, but there is header data in rows one and two that needs to be ignored. And the actual entries in column F are one single character; in creating the sample, I reduced all text to initials.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Offset Problem

    Not sure how any of that makes the solution offered not work. Based on what you've shown, I've provided a formula that will display back to you whatever is in column A for the rows with a single-character entry in column F. The formula manages to ignore rows 1 and 2 by design.

  5. #5
    Registered User
    Join Date
    02-20-2013
    Location
    Los Angeles, California
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Offset Problem

    Sorry, typing too fast, I missed the word 'not'.

    the actual entries in column F are NOT single character

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Offset Problem

    Maybe this array alternate:

    =IFERROR(INDEX(Attendees!$A$3:$A$23,SMALL(IF(LEN(Attendees!$F$3:$F$23)>0,ROW($A$3:$A$23)),ROWS($A$1:$A1))),"")

  7. #7
    Registered User
    Join Date
    02-20-2013
    Location
    Los Angeles, California
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Offset Problem

    Thanks for your input, it didn't address the need for the offset, but it did keep me thinking and I finally solved it using "-2" instead of using the offset function as shown below.

    Formula with Offset function that failed:
    {=IFERROR(INDEX(Attendees!$A$3:$A$23,SMALL(IF(Attendees!$F$3:$F$23<>0,ROW(OFFSET(Attendees!$A$1,0,0,COUNT(Attendees!$A$3:$A$23)+2,1))),ROWS($A$9:A9))),"")}

    New Working Formula:

    {=IFERROR(INDEX(Attendees!$A$3:$A$50,SMALL(IF(Attendees!$F$3:$F$50<>0,ROW($A$3:$A$50)-2),ROWS($A$67:A67))),"")}

+ 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 every 4th row problem
    By iantix in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-22-2017, 06:10 AM
  2. [SOLVED] problem with offset :(
    By xlyreb01 in forum Excel General
    Replies: 10
    Last Post: 12-11-2015, 03:42 PM
  3. Problem with Offset vba
    By Mamud in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 06-30-2013, 09:12 PM
  4. IF/OFFSET Problem
    By penfold in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-02-2009, 07:56 AM
  5. Problem with an offset
    By floep in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-28-2006, 10:45 AM
  6. Offset Problem
    By morrida3 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 09-16-2005, 03:02 PM
  7. Offset problem
    By Robbyn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-17-2005, 02:06 PM

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