+ Reply to Thread
Results 1 to 2 of 2

Trying to create an Order # sequence

Hybrid View

  1. #1
    Registered User
    Join Date
    09-13-2011
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    2

    Trying to create an Order # sequence

    Hi All,

    I am trying to create order # column using multiple fields but I keep on getting an error what am missing in the formula. I want to give an order 1 2 3 and restart 1 once the cells don't equal each other.

    =IF(Or(B3=B2,and(D3=D2),A2+1,1)) A2 = value is 1

    I probably going about the wrong way.

    Any assistance will be appreciated.

    Thank you

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Trying to create an Order # sequence

    Your AND function only has 1 field in, so that's just a straight comparison.

    If you want the numbers to restart at 1 when B2<>B3 or D3<>D2 then the formula will be:

    =IF(AND(B2=B3,D2=D3),A2+1,1)

+ 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