Results 1 to 12 of 12

[SOLVED] Count number of empty cells and sum up too the first non-empty cell.

Threaded View

  1. #1
    Registered User
    Join Date
    06-11-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    11

    [SOLVED] Count number of empty cells and sum up too the first non-empty cell.

    Hi, I've been doing some detailed diet planning and have put together a spreadsheet to calculate various micro/macro nutrients and have attached it.

    So far i have a sheet containing data on the contents of various ingredients and am constructing a sheet allowing you to create meals from the ingredients which will then give you a total for the meal in the row at the bottom of your list of ingredients.
    In the sheet "Meals" I have it setup to lookup the data from the ingredients tab and fill in based on the drop down on the left.

    The aim is that if you select total from the dropdown in column E of meals it will then total everything in the rows above up too and including the row including the name of the meal. For example the "tomato egg chorizo" meal once you select total underneath the egg ingredient would automatically calculate the total for all nutrients in the meal in the same row as the total in B5.

    I was thinking I'd be able to change the True portion of the if statement in E5 allowing me to copy it to the rest of the sheet but i can't work out how to get match or countblank too work in this manner.

    I hope it is clear what I am trying to achieve,

    Thankyou!
    Attached Files Attached Files
    Last edited by CraftyGamer; 11-28-2017 at 11:01 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Is it possible to count only the number of empty cells when using autofilter?
    By chief_abound in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-12-2017, 09:59 PM
  2. [SOLVED] Loop That Will Count Number Of Comments In a Column Between Empty Cells
    By M7A0S8T8E5R in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-15-2016, 04:32 PM
  3. Replies: 5
    Last Post: 02-01-2016, 05:57 PM
  4. Replies: 10
    Last Post: 09-26-2015, 08:26 PM
  5. Replies: 2
    Last Post: 07-25-2013, 01:01 PM
  6. Count the number of cells in a range that are not empty
    By efernandes67 in forum Excel General
    Replies: 5
    Last Post: 07-23-2010, 05:41 AM

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