+ Reply to Thread
Results 1 to 4 of 4

Need help adding '1' to cell from cell above

  1. #1
    Registered User
    Join Date
    03-13-2008
    Posts
    87

    Need help adding '1' to cell from cell above

    Hello there,

    I am trying to get a CA log going and we have our RFI Number in column B. The formula we have is: =If(D22="","",B21+1). Basically if a date is inputted into column D, it will look at the row above and add 1 to it. I.E. If RFI 007 comes in, it will look above at 006 and add one automatically. That's working fine.

    However sometimes we get requests that are not an RFI (Request for Information). So in column M the heading is: "Not an RFI?". If it's not an RFI, we put an X in that Cell. So now if there's an X in column M, i want B to not add a number and look to the next row above it that has a number in that cell. So Row 6 is RFI 006. But Row 7 is not a formal RFI, so it's blank. Therefore when Row 8 gets a date in column D then Row B reflects 007.

    Does that make sense? I have attached an example of what I'm trying to accomplish.

    Thanks,
    Lorne
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    05-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    291

    Re: Need help adding '1' to cell from cell above

    hi

    Try this in B4 & drag down

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Click on * below if you find this helpful

    Thanks,
    A

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,735

    Re: Need help adding '1' to cell from cell above

    Put this in B3:

    =IF(OR(D3="",M3="X"),"",MAX(B$2:B2)+1)

    then copy down.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    03-13-2008
    Posts
    87

    Re: Need help adding '1' to cell from cell above

    Both options worked lovely.

    Thank you!

  5. #5
    Registered User
    Join Date
    07-31-2012
    Location
    cape cod
    MS-Off Ver
    Excel 2003
    Posts
    33

    Red face Re: Need help adding '1' to cell from cell above

    Example RFI help.xlsx

    =IF(Table1[[#This Row],[Column12]]="x","", IF(Table1[[#This Row],[Column12]]="",COUNT($B$3:B18)+1))

+ 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: 0
    Last Post: 06-12-2013, 09:48 AM
  2. Replies: 4
    Last Post: 05-06-2013, 03:13 PM
  3. adding a formula in a cell but when cell = 0 cell is blank
    By Mike T in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-06-2005, 02:05 AM
  4. adding a formula in a cell but when cell = 0 cell is blank
    By Mike T in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-05-2005, 10:05 PM
  5. adding a formula in a cell but when cell = 0 cell is blank
    By Mike T in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-30-2005, 09:05 PM

Tags for this Thread

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