+ Reply to Thread
Results 1 to 7 of 7

hope there is a formula

  1. #1
    Wayne1969
    Guest

    hope there is a formula

    ok this is the first time i have actually been stuck using excel.
    project background: creating a diet template management sheet
    i have the daily grids planned out for a full 52 weeks
    each day has its own breakdown of calories, water intake, log of meals, nutrient breakdown (protien,carbs,fat) and the reccomended daily total for each.
    on the diet schedule worksheet the reccomended totals are drawn from a secondary worksheet which is fine as it lets users tailor the sheet to thier specific needs before they start the program by simply editing the values on the secondary sheet.
    now for my problem......
    each day has its own rda of cals,and the breakdown for each in protien,carbs, and fats.
    what i am looking for is a formula i can enter into each daily total that will give the user a final result for each bit.
    tis a bit hard to explain but an example would be:
    monday of week 1 total water intake on the sample form is 5200. that number is drawn from the previously mentioned secondary sheet.
    as a user consumes water through the day they note how much on the log form and it auto sums to give a total drank each day.
    what i want to do is have this total drank subtracted from the daily target allowance so the end users know how close to target they are coming each day.
    the formula i have for day 1 is this :
    =SUM(C21-C22)
    where C21 is the total amount cunsumed during day 1 and C22 is the daily allowance.
    this gives me the desired total.
    to be honest the thought of going through and manually adding a similar formula for the 365 day spreadsheet is not ranking very high on my " Gee i would love to do that list" .
    is there a formula i can use that contains a "wildcard" that will allow me to use the find and replace function, search for the default value i have in the result box and replace with a formula which will read from the desired cells daily?
    i havent been working with excel long enough to figure this one out and when i do a web search for help i have no joy.the issue i run into is if i use find and replace now with the current formula , the entire sheet reads from the first day which is kinda useless.
    any help will be appreciated.
    thank you
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    848
    Method using 2003 - I don't know where the menu commands are located in 2007 or if the keyboard shortcuts are the same. (they should be but then again, we are talking MS)

    I'm assuming you want to enter the formulas in the "Target" row - first one in row 27.

    Enter your formula in the first row you want to perform the calculation.
    Insert a column to the left of Column A.
    give your column a header - doesn't matter what it is...
    in A2 enter the formula =IF(D5="Monday",1,0)
    Fill this formula down to the end of your data
    Select all of your data
    next apply an auto filter (Data / Filter /Auto Filter)
    In your new A column filter for 1s only
    Highlight the column where the formulas will be placed. Start your selection in the top most row - this will be the row you entered the formula at the beginning of these instructions
    Press Alt+: - this selects visible cells only.
    Press the F2 key - this edits the original cell
    Press Ctl+Enter - this enters the formula into all of the selected cells, making adjustment to the cells references accordingly.

    After you've done the whole week, remove the auto filter and delete Column A.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Wayne1969, Please read the Forum Rules about thread titles before starting your next thread.

  4. #4
    Wayne1969
    Guest
    mdbc1 thank you for taking the time to help out.. its much appreciated.
    shg.....maybe you can explain to me why a person can make 1 post with a relevant title, as i have. and get 2 warnings from different people?
    this one i do know the answer to though....
    to be honest the mods mannerism on this forum is prolly the worst i have seen in the past 15 years i have been on the net.
    no worries though, you wont have to worry about me posting again.

    i will go somewhere else where the mods answer questions for people like me that have their heads up their butts.
    take care
    Last edited by shg; 09-04-2008 at 11:15 AM. Reason: accuracy

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    ooooooooooh bitchy !!!!!!!!
    ...watches with glee as wayne throws toys out of pram .....

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    i will go somewhere else where ...
    Godspeed, Wayne.

  7. #7
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    Re: hope there is a formula

    whoops, didn't mean to post here.
    Last edited by mewingkitty; 01-28-2009 at 12:07 PM.
    =IF(AND(OR(BLONDE,BRUNETTE,REDHEAD),OR(MY PLACE,HER PLACE),ME),BOW-CHICKA-BOW-WOW,ANOTHER NIGHT ON THE INTERNET)

+ 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. A formula template
    By ajaysehgal in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-07-2013, 06:12 AM
  2. Formula needed to tell me if a value exists
    By WhatF in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-10-2008, 08:16 AM
  3. Dragging a formula, but keeping certain values
    By sprackers in forum Excel General
    Replies: 1
    Last Post: 05-13-2008, 10:59 AM
  4. How do I subsitute part of a formula linked to another workbook?
    By Scej12 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-03-2007, 10:10 AM
  5. named formula VBA insert error
    By Hammer_757 in forum Excel General
    Replies: 14
    Last Post: 10-14-2006, 08:53 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