+ Reply to Thread
Results 1 to 2 of 2

Formula every fourth row

  1. #1
    Registered User
    Join Date
    06-07-2009
    Location
    london, england
    MS-Off Ver
    excel 2010
    Posts
    36

    Formula every fourth row

    Hi. I really need some help with a formula.

    I have a large data set which has numerous columns and rows of information in blocks of 4 rows (starting at row 7) . Every 2nd row within the block has text inputs and the 1st row contains values. I would like to put a formula in each column (if possible above row 7) which checks every 2nd rows and then adds any values in the cells above if the text matches.

    If this is possible within a formula then I would be very grateful for someone's help.
    Thanks
    James

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Formula every fourth row

    Just guessing from your explaination (a sample workbook would clarify) but lets say the data you want to add is in Col B, and text to match is in "A".

    In row 6,
    =IF(AND(MOD(ROW(),2)=0,A5=A6),B5+B6,"")
    You might need to change that to MOD(ROW(),2)=1 depending on data setup.
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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