+ Reply to Thread
Results 1 to 6 of 6

Problem figureing out how to dump data and set cells to 0

  1. #1
    Registered User
    Join Date
    09-05-2016
    Location
    illinois
    MS-Off Ver
    2013
    Posts
    4

    Problem figureing out how to dump data and set cells to 0

    I could maybe figure this out on my own, but it will take you guys a few seconds.

    I have a bunch of cells(every other cell in a row) I want to add up and then dump the data every week into a specific cell. Something like:

    If(new week) ( (sum of each row(every other cell)add to total) reset these cells to 0)

    I could even manuallly type in a 0 or 1 to dump the data instead of having to get the day of the week. That might be better considering I may not open it every week. I don't want to have a function in every cell. Please let me know if this is clear.

  2. #2
    Forum Contributor
    Join Date
    06-28-2016
    Location
    Pennsylvania, USA
    MS-Off Ver
    2013
    Posts
    308

    Re: Problem figureing out how to dump data and set cells to 0

    create a helper column aside of your data set using this formula entered in row 2 of whatever your last column is:

    =mod(row(A2),2)

    This will give you alternating 1/0 all the way down (double click the bottom right corner of cell after you apply this formula). After this is done, press Ctrl+Shift+L to apply a filter to you data, go to the helper column and un-select whichever number corresponds to the data you are not interested in. Highlight all the data you are interested in, and a total will be in the bottom right of your excel. type it in whereever. Put a 0 in your first cell, and double click it down to reset.

    Now, if you want this automated, you have to use VBA and macros, but it shouldn't take you too long to do manually with this method.

  3. #3
    Registered User
    Join Date
    09-05-2016
    Location
    illinois
    MS-Off Ver
    2013
    Posts
    4

    Re: Problem figureing out how to dump data and set cells to 0

    I was concerned I might need a macro. Is there really no way to set a certain cell to 0 with an if statement?

    Something Like:


    if(these cells are full) (Set (C1, C4, C6) to 0)

    Of course, you would somehow have get the data before it disappears.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Problem figureing out how to dump data and set cells to 0

    Quote Originally Posted by naturaldissolve View Post
    I was concerned I might need a macro. Is there really no way to set a certain cell to 0 with an if statement?
    A formula can not "push" a value into another cell. A formula can only return a value into the cell that the formula is entered in.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    09-05-2016
    Location
    illinois
    MS-Off Ver
    2013
    Posts
    4

    Re: Problem figureing out how to dump data and set cells to 0

    Thank you for the help. I'm looking into macros and I'll post in the macro section if I need any help.

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Problem figureing out how to dump data and set cells to 0

    Thanks for the feedback. Good luck!

+ 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. [SOLVED] VBA needed to extract specific data from data dump list
    By stinkyd in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-13-2015, 06:40 PM
  2. Rearranging data dump to excel
    By rosiedog1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2015, 02:17 PM
  3. Extracting data from Dump
    By shyam sundar in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-08-2015, 02:38 PM
  4. Replies: 9
    Last Post: 05-20-2014, 07:52 PM
  5. [SOLVED] Data Dump and look up
    By isac in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-10-2013, 02:47 PM
  6. Spreadsheet Layout from Data Dump
    By tholsey in forum Excel General
    Replies: 1
    Last Post: 07-09-2010, 08:56 PM
  7. Help figureing time differences...
    By aarone03 in forum Excel General
    Replies: 1
    Last Post: 01-31-2007, 09:09 PM

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