+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : need formula to work only if the cell is populated

  1. #1
    Registered User
    Join Date
    01-20-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    61

    need formula to work only if the cell is populated

    I have 1 column that contains numbers from a counter. The next column will subtract yesterday's number from today's number giving a difference. Even though there is a cell for each day. The counters are not checked every day. Therefore some cells are blank. So I need the formula to then look above to find the next previous populated cell. Having a hard time figuring this out. Any help will greatly appreciated. I have attached a sheet.counters.xlsx


    Thanks in advance
    Last edited by lisach; 02-03-2012 at 09:53 PM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: need formula to work only if the cell is populated

    Hi Iisach,

    Find the formula and your example attached with this formula in C4 and down.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    01-20-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: need formula to work only if the cell is populated

    Worked like a charm! Thanks! I would never have come up with this if i worked for the rest of the Year!

  4. #4
    Registered User
    Join Date
    01-20-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: need formula to work only if the cell is populated

    Hi Marvin,
    You helped me with this formula a couple of weeks ago. I ran into a problem with it. Not sure what the issue is. As I said in the first post. The counters are not checked every day therefore some of the cells in column B may be unpopulated. I applied the formulas as you wrote them but found sometimes they don't work. To illustrate this. Open the sheet you attached above. delete the number in cell B6 as if the counter was not checked that day. The number displayed in cell C9 should then be 1428 but it displays the "not yet" message instead. Interestingly.... if the number in B9 is moved to.... say B7.... everything works.

  5. #5
    Registered User
    Join Date
    01-20-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: need formula to work only if the cell is populated

    Well I think I figured it out, the formula you wrote only goes back a few cells. I need the formula to check all the way back to B3 from C10 if necessary. If the counters were not checked all week long, Sometimes that happens. The day they are checked is never the same, it would need to get the starting counter from B3.

  6. #6
    Registered User
    Join Date
    08-04-2011
    Location
    land of oz
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: need formula to work only if the cell is populated

    In C4
    Please Login or Register  to view this content.
    Last edited by fundam1; 02-18-2012 at 11:10 AM. Reason: amended formula

+ 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