+ Reply to Thread
Results 1 to 24 of 24

Extract results in a row from a formula

  1. #1
    Banned User!
    Join Date
    09-04-2018
    Location
    cyprus
    MS-Off Ver
    2007
    Posts
    282

    Extract results in a row from a formula

    hi my friends! i have something which i think it should not be so hard to do.

    example: in I:I there are only 1 and 2 number ,at J1 there is a formula which counts a certain event( if 12 comes counts 1,if no counts 0),at K:K I need to extract the counting results of J1

    thanks for your time and i hope we can give me help!
    Last edited by louis128; 01-12-2019 at 10:21 AM.

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Extract results in a row from a formula

    So you want a history of J1 in column K? Every time J1 changes, add the new result to the end of the list in K?

    That is not possible with a formula!

  3. #3
    Banned User!
    Join Date
    09-04-2018
    Location
    cyprus
    MS-Off Ver
    2007
    Posts
    282

    Re: Extract results in a row from a formula

    lets try ! iam sure we can get it!
    Last edited by louis128; 01-12-2019 at 11:04 AM.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Extract results in a row from a formula

    Sorry - we can't do the impossible. You will need VBA. Shall I move the thread for you?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Extract results in a row from a formula

    Please try at L2 Press Ctrl+Shift+Enter and copy down

    =IFERROR(MATCH(0,--(INDEX(I$1:I2,N(IF(1,ROWS(I$1:I2)-ROW(I$1:I1)+1)))<>INDEX(I$1:I2,N(IF(1,ROWS(I$1:I2)-ROW(I$1:I1))))),)-1,INT(ROWS(I$1:I2)/2))

    I think K3 should be 1 as the 2 1 2 is 1 pair and a half.
    Attached Files Attached Files
    Last edited by Bo_Ry; 01-12-2019 at 11:07 AM. Reason: be 1 not b1

  6. #6
    Banned User!
    Join Date
    09-04-2018
    Location
    cyprus
    MS-Off Ver
    2007
    Posts
    282

    Re: Extract results in a row from a formula

    dear ali,how can i use vba, to get that formula?

  7. #7
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Extract results in a row from a formula

    There is no point in trying something that will not work.

    When J1 changes, all formulas that look at J1 will change with it, the old results will be gone!

    The only ways to do it would give you a new result in column K when anything is changed anywhere in excel, not just J1.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Extract results in a row from a formula

    You said this:

    I want in K:K a history of the counts of J1
    You can't do this without VBA. Shall I move your thread to the VBA section for you?

  9. #9
    Banned User!
    Join Date
    09-04-2018
    Location
    cyprus
    MS-Off Ver
    2007
    Posts
    282

    Re: Extract results in a row from a formula

    BO ,thanks! how are you?iam glad i heard from you ,because you are the best!!!
    we are very close, consider that I:I is from up to 100 and L:L the same, so i dont want the next values at L:L, only up to the result on I:I.

  10. #10
    Banned User!
    Join Date
    09-04-2018
    Location
    cyprus
    MS-Off Ver
    2007
    Posts
    282

    Re: Extract results in a row from a formula

    not yetthanks ali

  11. #11
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Extract results in a row from a formula

    Quote Originally Posted by louis128 View Post
    only up to the result on I:I.
    What do you mean? , column I is your Input.

    If you want the result in column K, just put the formula in K2 and copy down.
    Attached Files Attached Files

  12. #12
    Banned User!
    Join Date
    09-04-2018
    Location
    cyprus
    MS-Off Ver
    2007
    Posts
    282

    Re: Extract results in a row from a formula

    Boss, what i don't want is the values at K6 and K7, I just want when the value change at I1 to change the same time at K2 only.Not values below!!

  13. #13
    Banned User!
    Join Date
    09-04-2018
    Location
    cyprus
    MS-Off Ver
    2007
    Posts
    282

    Re: Extract results in a row from a formula

    is it possible?Thanks so much,i mean it!

  14. #14
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Extract results in a row from a formula

    Be patient!

  15. #15
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Extract results in a row from a formula

    Good luck with this one, Bo! I'm not wasting my time on this one.

    Louis, you need to understand that the impossible doesn't suddenly become possible just because it is what you want.

    What you want is beyond the capability of excel. As Ali stated, it might be possible with vba, but your questions and explainations are as clear as crude oil! Assuming from your location that your first language is Greek or Turkish, not English, maybe you would be better of asking your questions in your own language (in the 'other languages' section of the forum).

  16. #16
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Extract results in a row from a formula

    Quote Originally Posted by louis128 View Post
    I just want when the value change at I1 to change the same time at K2 only.Not values below!!
    Maybe this

    K2 with CSE
    =IF(I2="","",IFERROR(MATCH(0,--(INDEX(I$1:I2,N(IF(1,ROWS(I$1:I2)-ROW(I$1:I1)+1)))<>INDEX(I$1:I2,N(IF(1,ROWS(I$1:I2)-ROW(I$1:I1))))),)-1,INT(ROWS(I$1:I2)/2)))


    If not, then I have no idea what you describe at all.
    Attached Files Attached Files

  17. #17
    Banned User!
    Join Date
    09-04-2018
    Location
    cyprus
    MS-Off Ver
    2007
    Posts
    282

    Re: Extract results in a row from a formula

    iam greek , i try to explain as better as possible
    Last edited by louis128; 01-12-2019 at 11:56 AM.

  18. #18
    Banned User!
    Join Date
    09-04-2018
    Location
    cyprus
    MS-Off Ver
    2007
    Posts
    282

    Re: Extract results in a row from a formula

    Bo, i love you!!!

  19. #19
    Banned User!
    Join Date
    09-04-2018
    Location
    cyprus
    MS-Off Ver
    2007
    Posts
    282

    Re: Extract results in a row from a formula

    dear ,Ali Bo_Ry is the best at excel forum.Thanks so much!

  20. #20
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Extract results in a row from a formula

    Louis - it's not a competition.

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

  21. #21
    Banned User!
    Join Date
    09-04-2018
    Location
    cyprus
    MS-Off Ver
    2007
    Posts
    282

    Re: Extract results in a row from a formula

    take care of Bo_ry!

  22. #22
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Extract results in a row from a formula

    Thank you, Happy to help.

    Next time, Please explain what you want and mockup manual expected result.


    Quote Originally Posted by louis128 View Post
    I just want when the value change at I1 to change the same time at K2 only.Not values below!!
    I barely understand this, I just guess.

    I would explain like "If no data in I6, I want K6 to be empty."

  23. #23
    Banned User!
    Join Date
    09-04-2018
    Location
    cyprus
    MS-Off Ver
    2007
    Posts
    282

    Re: Extract results in a row from a formula

    igot it! thanks

  24. #24
    Banned User!
    Join Date
    09-04-2018
    Location
    cyprus
    MS-Off Ver
    2007
    Posts
    282

    Re: Extract results in a row from a formula

    what I need is a formula in C1 which tracks the values of B1

    note :B1 is a formula which counts an 123 ,213,321 event (formula you created!!!)

    thank you bo

+ 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. extract all results from a drop down list
    By sarinky in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-15-2016, 11:42 PM
  2. Extract numbers from a string then calculate on results
    By kernop in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-03-2016, 09:22 AM
  3. Extract results from a database
    By Danny77 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-10-2014, 10:10 AM
  4. VBA to extract results based on two conditions
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-04-2011, 03:24 PM
  5. Extract Results into another area of worksheet
    By graphicsgenie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-26-2010, 02:05 PM
  6. Search and extract results to a txt file
    By vijayboomi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-07-2010, 11:40 PM
  7. [SOLVED] How do I extract 3 middle results and average them in excel
    By SYBS in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 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