Welcome to iPadForums.net Guest - Click Here to Register

Help with Numbers formula

This is a discussion on Help with Numbers formula within the iWork Forum forums, part of the iPad App Store category; Hello everone, I am new to the forum, recently purchased my first Ipad and here I am. What I am trying to do is write ...

Register with iPad Forums
+ Reply to Thread
Page 1 of 4 1 2 3 ... LastLast
Results 1 to 10 of 31
  1. #1
    iPad Fan!
    Member #
    93425
    Join Date
    Aug 2011
    Posts
    10

    Help with Numbers formula

    Hello everone, I am new to the forum, recently purchased my first Ipad and here I am.

    What I am trying to do is write a formula that will take the value of C2 and minus the most recent log entry at the bottom of column C and then updat in the footer. So that everytime I update the log, it updates the value in the footer. I have been researching this for days and can't get anything to work.

    Thanks for your help


  2. #2
    iPF Elite
    Member #
    28530
    Liked
    176 times
    Join Date
    Jan 2011
    Location
    Dayton, WA
    Posts
    9,230
    An interesting challenge. I'll give it a go. It would help if you could supply the basic file you want this to happen in (minus any private data) with a more detailed description of what exactly goes in what cell.

    You'll need to make two more posts before you can post a link, so brows around in the forum and enjoy. You are bound to find something you want to comment on.

  3. #3
    iPad Fan!
    Member #
    93425
    Join Date
    Aug 2011
    Posts
    10
    Thanks Twerpoet. Basically I have a beginning number in C2 that corresponds with a date. Say that number is 100. Now in C3 there is a number 99. C4 has 98.65 etc. I have a footer that I would like to have update the differance between the first number "100" and the following numbers depending on the date of entry. So if 100 was input on 8/25 and 99 was input on 8/26 then the footer would read "1". On 8/27 the input number would be 98.65 and the footer would read 1.35 etc.

    Hope that helps.

    I think the formula would be C2- LOOKUP.... then something else that would grab the last entry in column C.

  4. #4
    iPF Elite
    Member #
    28530
    Liked
    176 times
    Join Date
    Jan 2011
    Location
    Dayton, WA
    Posts
    9,230
    That sounds about right. I'll see what I can figure out.

  5. #5
    iPF Elite
    Member #
    28530
    Liked
    176 times
    Join Date
    Jan 2011
    Location
    Dayton, WA
    Posts
    9,230
    Ok, here is what I came up with. It's not perfect, because it won't deal with gaps or cells with invisible entries (like spaces). You should be able to reduce the second by formatting the entire column as dates, and will just have to be careful about the first.


    These instructions are inside out (first described, last done when creating the formula). Follow along best you can using the attached screen shot.

    First you use COUNTA, to determine the number of entries in the column, add 1 to offset it to the actual row number (since it does not count the Header row. You select the row by taping the bar above the row, not one of the cells.

    Next you use ADDRESS to turn the result into a location string. The COUNTA result becomes the row, and I manually enter a 2 for the column (because I'm using column B). Change the addr-type to 'neither preserved' to get a typical 'B5' result. Otherwise you end up with $B$5, which wont work with the next command. Carefully edit (delete) the other values and commas.

    INDIRECT fetches the value of the cell address created by the ADDRESS function.

    Subtract the beginning cell value from your your current value (or vise versa depending on whether you want negative or positive results. I opted for the former, because it was slightly easier to edit. (If you want the later, just insert the cursor before instead of after the formula, select the cell, and then tap minus). Hope that made sense. At any rate, the B2 would appear directly after DUR2DAYS instead of at the end of the equations, just before the last parentheses.

    Finally the result needs to be a duration. I figured days (for a log) would be the most logical. DUR2DAYS converts the results of B5-B2 into the number of days.

    Hope this helps.
    Attached Thumbnails Attached Thumbnails Help with Numbers formula-logdaycount.jpg  

  6. #6
    iPad Fan
    Member #
    80087
    Liked
    3 times
    Join Date
    Jul 2011
    Posts
    285
    are the succeeding numbers always smaller than its predecessor? you can always use the minimum function

    c2-min(c3:c99)

    if not, if the dates are in column b,

    =c2-vlookup(max(b2:b99),b2:c99,2)



    note: this assumes your footer is on c100
    Last edited by 88raymond; 08-29-2011 at 10:39 PM.
    iPad2 3G 64GB
    SHSH 4.3.3
    JB
    Manila, Phil

  7. #7
    iPF Elite
    Member #
    28530
    Liked
    176 times
    Join Date
    Jan 2011
    Location
    Dayton, WA
    Posts
    9,230
    Quote Originally Posted by 88raymond View Post
    are the succeeding numbers always smaller than its predecessor? you can always use the minimum function

    c2-min(c3:c99)

    if not, if the dates are in column b,

    =c2-vlookup(max(b2:b99),b2:c99,2)



    note: this assumes your footer is on c100
    Thanks!

    That's much better than my formula, as long as new entries are always either greater or lesser than the original date. I enclose it with the DUR2DAY function to get rid of the trailing d, and so the result will be a number that can be used in other equations.

    I found it unnecessary to use VLOOKUP, since MAX returns the value directly. Or am I missing something?

    My final formula, based on increasing dates from the original.

    DUR2DAY(MAX(Dates)-C2) Where Dates is the name of the column. You can avoid using cell ranges if you select the entire column instead. Do this by tapping on the bar above the column instead of a cell. The function entry will become the Header of the column. As long as the formula is located in the footer, it will not be counted in the column range, and always at the bottom of the table.

    EDIT: Added screen shot, just because I did it before. Note that in the screen shot the column's name is End, not Date. I thought I was being clever by changing the name to something that made more sense than my cobbled together test table.
    Attached Thumbnails Attached Thumbnails Help with Numbers formula-logdaycount_2.jpg  
    Last edited by twerppoet; 08-29-2011 at 11:22 PM. Reason: Add attachment. and comment.

  8. #8
    iPad Fan
    Member #
    80087
    Liked
    3 times
    Join Date
    Jul 2011
    Posts
    285
    i don't have the ability to comprehend your solution, it seems too complex, hehe..

    as i understand it, the OP has two sets of data: dates and values. each date has a corresponding value. he wants to always have the difference between the latest value entry with the original entry.

    i assumed the latest entry would be the highest date value, thus the "max" function in my second formula. vlookup is needed because of the array (two sets of values).
    Last edited by 88raymond; 08-30-2011 at 12:55 AM.
    iPad2 3G 64GB
    SHSH 4.3.3
    JB
    Manila, Phil

  9. #9
    iPF Elite
    Member #
    28530
    Liked
    176 times
    Join Date
    Jan 2011
    Location
    Dayton, WA
    Posts
    9,230
    Headsmack! You are right, the values, not the dates themselves are supposed to be compaired. I don't know where I got off track. I still think your formula will work better if you select the columns instead of a cell range, but have not tested it to be sure.

    My first formula was way to complex, which is why I liked your use of MAX or MIN so much. I had not stumbled on those yet.

  10. #10
    iPF Elite
    Member #
    28530
    Liked
    176 times
    Join Date
    Jan 2011
    Location
    Dayton, WA
    Posts
    9,230
    Ok, I had to go back and experiment some more. Maybe I've got some OCD hiding in my genes.

    I could not get the column selection thing to work with your formula. However, when I used LOOKUP instead of VLOOKUP it worked just fine. Here is a screen shot of the results.

    I do see one potential problem not mentioned yet. I don't know what the formula would do if you entered two identical dates. The results could be unpredictable. It could be avoided by entering the time as well, I suppose, but it would be easy to overlook.


    Edit: Oops, notice I have D14 selected for the formula, but it is exactly the same formula instead as C14. I'd been playing with VLOOKUP in the D14 column because I was getting self-referencing errors in C14. I got it to work using LOOKUP, then copy pasted the formula to C14 where it worked just as well.
    Attached Thumbnails Attached Thumbnails Help with Numbers formula-valdiffbydate.jpg  
    Last edited by twerppoet; 08-30-2011 at 12:12 PM.


+ Reply to Thread
Page 1 of 4 1 2 3 ... LastLast

Sponsors

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Similar Threads

  1. iPad Numbers formula help
    By Zera in forum iWork Forum
    Replies: 12
    Last Post: 09-02-2011, 08:49 PM
  2. Numbers help with formula running down a page
    By BoredFatMan in forum iWork Forum
    Replies: 3
    Last Post: 05-11-2011, 01:19 PM
  3. Mathmatics/Physics Formula writing iPad app
    By fduckworth in forum iPad Apps
    Replies: 6
    Last Post: 05-06-2011, 01:59 AM
  4. Numbers Formula Instructions
    By Hal05154 in forum iWork Forum
    Replies: 3
    Last Post: 01-23-2011, 03:37 PM
  5. Formula One Car Crash Video
    By Gabi in forum Off-Topic
    Replies: 3
    Last Post: 09-21-2010, 02:04 AM

Search tags for this page

counta ipad numbers
,
equation in apple numbers
,

formula for mac numbers for subtracting

,
formulas in numbers forms ipad
,
how to add the next row in numbers 09 on ipad
,

how to copy formula into next row numbers app ipad

,

ipad numbers formulas

,

ipad numbers how to enter a formula

,
iwork formula for if array
,

iwork numbers formulas max if

,
iwork numbers functions refresh
,
iworks numbers finding the max value
,
mac numbers input function when cell clicked
,
mac numbers lookup wont work
,

numbers app formulas

,

numbers wont work on ipad

,
numbers.app function on column
,
paste row vlookup
,
show a name with a max function in numbers.app
,

vlookup on ipad

Click on a term to search for related topics.