+ Reply to Thread
Results 1 to 3 of 3

Formula to use number in cell to left & ignore any empty cells

  1. #1
    Registered User
    Join Date
    02-13-2007
    Posts
    4

    Red face Formula to use number in cell to left & ignore any empty cells

    Hello!

    I have a spreadsheet that has Jan-Dec as the column heading. Each month, I enter a number into the row under the month heading. I need a formula that will pick up the number in the current month cell, but ignore any that are empty.

    For example, I may have a number of 50 under January, 55 for February, 45 for March, but April thru Dec. are still blank. I need the formula to pick up the number of 45 from March, then the next month, I would need the April number. (I cannot total the 12 months because the number I enter is already the year to date number).

    After that I need to divide....
    There is a "target" number for the year. I need to take the current month total, divide by the target for the year to get a result to show percentage of how close or far off the number is from the target.

    I tried using an "if" statement but Excel only allows up to seven if statements, I need 12.

    Help please
    Last edited by joya; 02-13-2007 at 01:38 PM.

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    How about this,

    =SUM(A2:L2)/N1

    where A2:L2 is your values per month and N1 is the target for the year. Format cell as %
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Registered User
    Join Date
    02-13-2007
    Posts
    4

    Formula to use number in cell to left & ignore any empty cells

    Hey Old Chippy, thanks for responding to me. Unfortunately, that won't work because that formula will total all the numbers I put in the cells each month. I can't do that becuase the numbers I am inputting each month is the actual year to date total, not the total for just that month.

    Any other ideas? I really appreciate the help!

+ 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