+ Reply to Thread
Results 1 to 3 of 3

Make a formula that has specific-cell-references change every n'th row in Excel

  1. #1
    Registered User
    Join Date
    12-07-2020
    Location
    Netherlands
    MS-Off Ver
    10
    Posts
    2

    Make a formula that has specific-cell-references change every n'th row in Excel

    Hi all,

    For a university project, I am currently working on a fictional dataset containing information on a charity and their different campaigns (see attachment for a small part of the document).

    What I would like to do is the following: for every "group" of 10 rows (10 most recent donations and/or soliciations for 1 donor), I want to check if the 10 dates showcased in column I (dates on which that specific donor contributed an amount to the charity) overlap with the dates in column F (dates on which the donors received a sollication of the charity asking them for a donation). In that way, it would become possible to compare the different types of donor (e.g. male/female, ZIP code, etc.) in terms of how sensitive they are to the donation solicitations made by the charity.

    I found a way to check this overlap for the 10 donation dates of the first donor, using the following formula (see column N): =NOT(ISERROR(MATCH(I11,$F$2:$F$11,0)))

    However, now I would like to change the values in the formula after every 10 rows, so that that the formula focuses on the next donor. For example: it should become $F$12:$F$21 for donor #7270, $F$22:$F$31 for donor #10620, and so on and so forth.

    Is there a way to do this? Of should I use a different type of formula?

    Best,
    Stan
    Attached Files Attached Files

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Make a formula that has specific-cell-references change every n'th row in Excel

    Hi Stan,

    if, per sample, your data is sorted by donor_id (Col A) then one option:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    if data is not sorted this way then you could use:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    or, if your data is small you could use OFFSET which is a little more succinct, syntax wise, but Volatile (so not so great if used in large number, or with lots of further / dependent calculations)

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-07-2020
    Location
    Netherlands
    MS-Off Ver
    10
    Posts
    2

    Re: Make a formula that has specific-cell-references change every n'th row in Excel

    Your first proposed formula seems to work perfectly XLent. Thank you very much for the help!

+ 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. Replies: 1
    Last Post: 06-13-2019, 07:34 PM
  2. Trying to make Excel use a specific printer ( and hopefully no way to change it)
    By jbluemke in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 03-13-2017, 07:00 PM
  3. [SOLVED] How to make cell change color at specific random frequency?
    By randomizer in forum Excel General
    Replies: 4
    Last Post: 01-20-2017, 09:05 AM
  4. Replies: 3
    Last Post: 12-22-2010, 01:52 PM
  5. A way to get the cell references in a formula change
    By Michael6 in forum Excel General
    Replies: 9
    Last Post: 09-09-2009, 05:45 AM
  6. How to make a global change to many references
    By ephriam in forum Excel General
    Replies: 2
    Last Post: 08-13-2009, 10:13 AM
  7. Replies: 8
    Last Post: 01-30-2005, 09:06 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