+ Reply to Thread
Results 1 to 7 of 7

Graph/formula - variable starting point

  1. #1
    Forum Contributor
    Join Date
    01-26-2018
    Location
    London, England
    MS-Off Ver
    365
    Posts
    311

    Graph/formula - variable starting point

    Not quite sure if the following is possible, but this is excel so of course it is

    I want to be able to use the value in KR4, to dictate the starting point of the formula in KV4, an added complication is that the formula in KW4 is slightly modified, however, then dragged until KO4 is reached (notice the row 5 doesn't reach as far - because KO4 is reached early, due to the start being 252)

    Any help on this would be massively appreciated

    Mdn
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Graph/formula - variable starting point

    I'm not entirely sure how everything is supposed to be interacting, but for starters, I changed the formula in KV4 to:

    =MATCH(INDEX($B$4:$KO$4,1,MATCH($KR$4,$B$3:$KO$3,0)),$WO:$WO,0)-MATCH(INDEX($B$4:$KO$4,1,MATCH($KR$4,$B$3:$KO$3,0)+1),$WO:$WO,0)

    ...and the formula in KW4 to:

    =IFERROR(KV4+MATCH(INDEX($B$4:$KO$4,1,MATCH($KR$4,$B$3:$KO$3,0)+COLUMN(A:A)),$WO:$WO,0)-MATCH(INDEX($B$4:$KO$4,1,MATCH($KR$4,$B$3:$KO$3,0)+COLUMN(B:B)),$WO:$WO,0),"")

    Fill right, and the values in row 4 should respond to whatever is entered in KR4. Tweak the ranges and you can get the same effect in row 5. Take a look at the attachment to see if I'm on the right track. If something more is supposed to happen, please clarify what results you're expecting.
    Attached Files Attached Files
    If your problem has been solved, please use "Thread Tools" to mark the thread as "Solved".

    If you're grateful for this site's existence and would like to contribute to the community, please consider posting something hilarious in our joke thread:
    https://www.excelforum.com/the-water...ke-thread.html

  3. #3
    Forum Contributor
    Join Date
    01-26-2018
    Location
    London, England
    MS-Off Ver
    365
    Posts
    311

    Re: Graph/formula - variable starting point

    Hi Cantosh,

    The problem is the formula isn't aware of the value in KR. Your formula only works if KR is set to 300; ideally, I'm looking to find a way that this is variable

  4. #4
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Graph/formula - variable starting point

    I'm looking to find a way that this is variable
    the formula provided are all cell references ( variables )
    did you tried to change the values in KR
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  5. #5
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Graph/formula - variable starting point

    As vlady indicated, the formulas are explicitly based off of KR4. If you change KR4, KS4 changes due to the lookup and KV4:WH4 adjusts to match the new value (see attachment with KR4<>300). If I'm misunderstanding the aim, can you clarify what it should be doing and what values it should return?
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    01-26-2018
    Location
    London, England
    MS-Off Ver
    365
    Posts
    311

    Re: Graph/formula - variable starting point

    My mistake

    Yes, you've done a brilliant job there Cantosh - massively appricated

  7. #7
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Graph/formula - variable starting point

    haha, no worries. Glad I could help. 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. Dropdown with variable starting point
    By Travman1986 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-11-2017, 04:56 PM
  2. VBA MAcro help - using a variable starting point
    By Sadievan in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-06-2015, 01:26 PM
  3. code for variable starting point
    By Sebastian1942 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-25-2013, 11:04 AM
  4. Replies: 0
    Last Post: 09-16-2013, 10:10 AM
  5. [SOLVED] Adding filter to all sheets with variable starting point
    By SeaniGeld in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-25-2013, 04:20 AM
  6. Index/Match to find Starting Point of Average, Ending Point of Average Variable
    By tgentry in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-09-2012, 01:04 AM
  7. Help with Formula using a starting point
    By daz_uk in forum Excel General
    Replies: 2
    Last Post: 02-07-2007, 12:24 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