+ Reply to Thread
Results 1 to 3 of 3

Fill Series if adjacent cell value is greater than zero

  1. #1
    Registered User
    Join Date
    02-08-2012
    Location
    ireland
    MS-Off Ver
    Excel 2010
    Posts
    2

    Fill Series if adjacent cell value is greater than zero

    Hi,

    I want to give a location (Column A) a number in Column B based on whether or not it contains a particular item. The quantities of these items are contained in Columns C and D. The number will be sequential but will be only assigned if Columns C or D or both contain a value greater than 0.

    There will be blank cells due to the fact that C an D may both be zero but as it continues down column B the number should be the next in sequence. I have tried to filter C and D but fill series doesn't work on the resultant filtered cells in B. Is there a formula I can put in B1 to give me this sequential numbering with skipped or blank cells.

    I have attached an example that I hope explains what I am trying to do.
    Thanks
    Max
    Attached Files Attached Files
    Last edited by maxflower; 02-12-2012 at 07:22 PM.

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Fill Series if adjacent cell value is greater than zero

    maxflower,

    Welcome to the forum!
    Attached is a modified version of your example workbook. In cell B2 and copied down is this formula:
    =IF(OR(C2>0,D2>0),COUNTIF($B$1:B1,">0")+1,"")
    Attached Files Attached Files
    Hope that helps,
    ~tigeravatar

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

  3. #3
    Registered User
    Join Date
    02-08-2012
    Location
    ireland
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Fill Series if adjacent cell value is greater than zero

    Hi tigeravatar,

    Thank you, that has worked perfectly.

    Max

+ 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