+ Reply to Thread
Results 1 to 11 of 11

still stuck (value of a cell in a different location)

  1. #1
    Registered User
    Join Date
    09-21-2010
    Location
    grenfell
    MS-Off Ver
    Excel 2007
    Posts
    10

    still stuck (value of a cell in a different location)

    still stuck, i hope someone can help us out! please!

    cell d (best date to sell) shows us the best date to sell
    the price we sell for is cell c (my sell price)
    we want to show "my sell price" on "best date to sell"

    for example:
    ------
    on 100701, bought for 2086, need to sell for 2190, the best date to sell would be 100708.

    on 100708 in column E we want the value of 2190. (cell E9)
    ------
    on 100703, bought for 2085, need to sell for 2189, the best date to sell is again 100708.

    there is already the value of 2190 in E on 100708 so we need to add 2189 bringing the total of E9 to 4379
    ------
    on 100702 there is no best date to sell so E3 will equal 0
    Attached Files Attached Files
    Last edited by grentech; 10-05-2010 at 05:52 PM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: still stuck (value of a cell in a different location)

    Hi grentech,

    I don't believe you have given enough information to arrive at an answer.

    Try this question for example. A train travels 20 km, how fast did it go?

    We have no idea of your criteria for sell price or date. All investors want this answer. Very few can figure it out.

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: still stuck (value of a cell in a different location)

    Solve this first. How fast was the train going at 12.30am?

    And then ask, what did the driver have in his lunchbox?

  4. #4
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: still stuck (value of a cell in a different location)

    Funny , I am pretty sure I understood what he wants.

    Try this in cell "E2"

    =SUMIF($D$2:$D$9, A2, $C$2:$C$9)

    Then drag and copy down.
    Attached Files Attached Files
    Last edited by JapanDave; 10-04-2010 at 10:07 PM.

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: still stuck (value of a cell in a different location)

    Hi JapanDave,

    I'm still confused but realize there may be something for me to learn here.

    Your formula of Sumif, looks at all the "Best Date to Sell" (in Col D) and compares them to the "Date" field (in Col A). I presume the Colum A dates are really "Date Purchased" as Column B is purchase price. If the Purchase date is equal to the Best Date to Sell it then adds up all the "My Sell Prices". This is the answer your formula gives back.

    From the first post is says you want the value of 2190 in E9 - I'm lost at this point.

    Because you have a "Best Date to Sell" (of things you have already bought) I'm thinking you are buying stocks short or perhaps bonds that you need to hold to this "Best Sell Date". This might also be a stock options scheme where you are getting vested options to buy at a past date.

    In any event I'm clueless why summing the Sell Prices for the Sell dates based on a match of Buy Dates makes any sense.

    I might have a lot to learn. I hope that grentech got the answer s/he was looking for.

  6. #6
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: still stuck (value of a cell in a different location)

    Hey Marvin,

    Actually, you know a lot more about excel than me and can teach me quite a lot, I am way below the level of understanding of excel than you.

    The way Interpreted this was, that the "A" column was fixed as being dates, continuous of corse. And the "bought price" column, the OP is entering manually. I also am interpreting that the "my sell price" column is entered manually.

    So that leaves the "best date to sell" column and column "E". Since he wanted a formula to to add up the data when he has input which day is best to sell, the SUMIF formula is all that was needed I thought. He wanted a formula to add data that corresponded with the predetermined "best sell" dates, that the OP has seems to have stipulated.

    I don't think he is looking for a formula to determine which is the best dates to sell? That how I see it anyway.

    As to why summing the Sell Prices for the Sell dates based on a match of Buy Dates makes any sense, I guess the OP could enlighten us a bit more, b/c I find confusing too. Unless this is just a table to record his data as it happens and nothing more?

    But I do understand what you are saying.

    Also, when you said "From the first post is says you want the value of 2190 in E9 - I'm lost at this point." He also said that another piece of data "2189" that falls on the same best sell date and b/c there is already 2190 in cell E9 , he needed a formula to add those peices of data that fell on the same date.

    To the OP, could you elaborate a bit more for us? Or is the formula what you were looking for?
    Last edited by JapanDave; 10-05-2010 at 01:38 AM.

  7. #7
    Registered User
    Join Date
    09-21-2010
    Location
    grenfell
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: still stuck (value of a cell in a different location)

    JapanDave, that was spot on what i needed, worked a treat. im not the best at explaining but i thought it was that was a lot easier then trying to explain the full worksheet (which has 49 columns).

    the sells are worked out by multiplying the "buy" by a certain percentage and then selling them on the date where they are equal or higher then the high of the day. which of course isn't going to show the future, just the past, to watch how things went in the past.

    at 12:30am the train was not moving as the train driver had stopped for lunch. the lunch box contained humble pie, and the train was traveling "quick",

    thanks again for helping with the formula, and thanks MarvinP and Marcol for the laugh

  8. #8
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: still stuck (value of a cell in a different location)

    Glad it worked for you.

  9. #9
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: still stuck (value of a cell in a different location)

    at 12:30am the train was not moving....
    Correct!
    12:30 is an instant in time, Therefore nothing moves!

    I apologise for my humble pie, was it not to your taste? Was it offal?

    Joking apart I'm glad your problem has been solved, and regret I was not sober enough to see your question clearly when I posted.

    Well done JapanDave
    Last edited by Marcol; 10-05-2010 at 07:48 PM.

  10. #10
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: still stuck (value of a cell in a different location)

    @ Marcol, I am still only a baby compared to you guys.

  11. #11
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: still stuck (value of a cell in a different location)

    No!
    Nobody should ever stop learning, nor respecting others.

    I apply this to my thinking, and try hard not to forget it

    "Ah, yes, Grasshopper. You have much to learn yet, before you surpass the master. You must watch and learn, Grasshopper."

    ありがとうございます

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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