+ Reply to Thread
Results 1 to 7 of 7

Formula needs to adapt to newest data in column

  1. #1
    Registered User
    Join Date
    10-23-2019
    Location
    Nijmegen, Netherlands
    MS-Off Ver
    Office365
    Posts
    3

    Formula needs to adapt to newest data in column

    Hi all,

    I want to make a formula in which a part of that formula refers to the lowest value in a column. The formula is: 88,362 + (13,397 x weight in kg) + (4,799 x length cm) – (5,677 x age in years). In my excel sheet I have a column for weight in which I have a row for each week of the year. I want my formula to adapt to my current weight, which means that if I add a new row with data to my column I want my formula to automatically refer to that value without having to change the formula.

    So if my current weight is in C34 and I add my new weight in C35, the formula automatically has to refer to the data in that cell. If I add data in C36, the formula has to adapt to the weight posted in that cell. And so on, and so on. I've tried different things and did some thorough searching, but either I haven't found a solution to this problem yet or I didn't understand potential solutions.

    I hope I can find some help here

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Formula needs to adapt to newest data in column

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? However, please give us an indication of the approximate number of rows of data you want the solution to work with (100, 1000, 100,000 or whatever). Please DO NOT attach a picture of an Excel sheet (I do not have the patience to re-type any/all your stuff before starting).

    1. It does NOT have to be your real sheet - mock up a SAMPLE if you need to. But not 1000's of rows!!! It makes manual checking so tedious. Whatever you do... make sure that all confidential information is removed first!!

    2. Make sure that your sample data are truly REPRESENTATIVE of your real data. For example, don't show text in a column if it's really a number. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    3. Make sure that your desired solution is also shown (mock up the results manually). To be honest, I am not interested in seeing a non-working formula... or a pile of blank cells. However, I am very interested in seeing your EXPECTED results in their EXPECTED location.

    4. Try not to use merged cells. They cause lots of problems and are DEFINITELY best avoided!

    Unfortunately the attachment icon doesn't work at the moment. So,... instead click on Go Advanced (below the Edit Window) while composing your reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    10-23-2019
    Location
    Nijmegen, Netherlands
    MS-Off Ver
    Office365
    Posts
    3

    Re: Formula needs to adapt to newest data in column

    Hi,

    I hope this example worksheet will do!
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Formula needs to adapt to newest data in column

    I'll give it a go and see....

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Formula needs to adapt to newest data in column

    In C2:
    =IF(A2="","",88.362+(13.397*A2)+(4.799*185)-(5.677*35))

    copied down... (optional extra!!)

    and in H2:
    =LOOKUP(300^10,C:C)
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    10-23-2019
    Location
    Nijmegen, Netherlands
    MS-Off Ver
    Office365
    Posts
    3

    Re: Formula needs to adapt to newest data in column

    Thank you very much for your answer, it helped me solve my problem! I've combined your solution in H2 within the formula to use it in my own worksheet to get:

    =88,362+(13,397*(LOOKUP(300^10;C:C))+(4,799*185)-(5,677*35))

    This way I can just use column A in the worksheet to get the wanted solution.

    Thanks again!

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Formula needs to adapt to newest data in column

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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] Modification to the Newest file in a folder function - Getting a list of 'n' Newest files
    By yoursamrit2000 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-21-2019, 07:22 AM
  2. [SOLVED] Help Copying Column to Newest Empty Column
    By Emili Excel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-18-2015, 01:06 PM
  3. [SOLVED] Sort dates in column from oldest to newest...
    By ILoveYouExcel in forum Excel General
    Replies: 2
    Last Post: 06-11-2014, 02:11 PM
  4. Arranging Pivot table data from Newest to oldest to Newest does not appear
    By paradise2sr in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-08-2014, 06:53 AM
  5. [SOLVED] adapt code to various criteria column
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-05-2013, 02:51 PM
  6. Replies: 1
    Last Post: 02-23-2012, 05:49 PM
  7. Formula to get newest data from list
    By stin25 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-23-2009, 10:37 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