+ Reply to Thread
Results 1 to 5 of 5

Incrementing IF formula's by rows

  1. #1
    Registered User
    Join Date
    11-08-2010
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    10

    Incrementing IF formula's by rows

    Hi,

    I'm trying to copy an IF statement across cells but can't work out how to increment the rows without affecting the columns:

    I have a similar table to the one attached and would like to copy the formula in the sales tab across the row for each agent but increment only the row value. We have about 90 agents so I don't want to do it one by one by manually changing the reference. I've only included one row just for an example and included the lookup table in the same workbook which is the 01-12 tab.

    Is there any easy way to achieve this?

    Thanks

    Alex
    Attached Files Attached Files
    Last edited by Alexvs; 12-09-2010 at 05:11 AM. Reason: Solved

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Incrementing IF formula's by rows

    Numerous possibilities... one would be:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-08-2010
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Incrementing IF formula's by rows

    Thanks for pointing me in the right direction. I had to repeat the INDEX part of the formula for the second column that I needed to include in the sum and it's working perfectly. This is what I did:

    =IF(SUM(INDEX('01-12'!$B$2:$B$14,COLUMNS($C3:C3)),INDEX('01-12'!$C$2:$C$14,COLUMNS($C3:C3)))>0,"Sick","")

    Thanks

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Incrementing IF formula's by rows

    Not sure I follow why you need to include Column C ("absent" rather than "sick") but if that's the case you should use:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    11-08-2010
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Incrementing IF formula's by rows

    It's because we monitor sick and absense individually but want to class both as sick on that report so we can monitor repeat offenders. The other report I've copied the formula into has the two columns seperated so have others between the two which is why I've done the formula the way I have. Its working perfectly and have now filled the report for the whole month and doing the same for previous month.

    Thanks again.

+ 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