+ Reply to Thread
Results 1 to 19 of 19

Get the values on row by row

  1. #1
    Registered User
    Join Date
    02-10-2016
    Location
    Philippines
    MS-Off Ver
    2010, Google spreadsheet
    Posts
    22

    Get the values on row by row

    Hi,

    I'm new here, and I really need your help.

    Scenario: I already got the value on the Row (B), is it possible to get also the value on the Row (C) after getting all the value on the Row (B)

    This is the formula I used: =IF(ISERROR(INDEX($A:$C,SMALL(IF($A:$A=$F$1,ROW($A:$A)),ROW(1:1)),2)),"",INDEX($A:$C,SMALL(IF($A:$A=$F$1,ROW($A:$A)),ROW(1:1)),2))

    Thank you in advance

    Screenshot 2016-02-10 at 15.03.20.png

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: Get the values on row by row

    Try

    F2=IFERROR(INDEX($A$1:$C$2500,SMALL(IF($A$1:$A$2500=$F$1,ROW($A$1:$A$2500)-ROW($A$1)+1),ROWS($A$1:A1)),2),"") with CRTL+SHIFT+ENTER

    A:A is not good with array formula
    A1:A2500 or according your ranges is good with array formula
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: Get the values on row by row

    Another Without CTRL+SHIFt+ENTER

    F2=IFERROR(INDEX($A$1:$C$2500,AGGREGATE(15,6,(ROW($A$1:$A$2500)-ROW($A$1)+1)/($A$1:$A$2500=$F$1),ROWS($A$1:A1)),2),"")

  4. #4
    Registered User
    Join Date
    02-10-2016
    Location
    Philippines
    MS-Off Ver
    2010, Google spreadsheet
    Posts
    22

    Re: Get the values on row by row

    Hi Shukla,

    I already tried the formula that you gave but the result is still the same as above.
    Is it possible that after getting all the "below expectation" of Row B, F6 would start to search on the "below expectation" of Row C.


    Screenshot 2016-02-10 at 16.27.32.png


    By the way thanks for answering my question.

  5. #5
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: Get the values on row by row

    OK

    try

    F2=IFERROR(INDEX($A$1:$C$2500,AGGREGATE(15,6,(ROW($A$1:$A$2500)-ROW($A$1)+1)/($A$1:$A$2500=$F$1),ROWS($A$1:A1)),2),INDEX($A$1:$C$2500,AGGREGATE(15,6,(ROW($A$1:$A$2500)-ROW($A$1)+1)/($A$1:$A$2500=$F$1),ROWS($A$1:A1)),3)) without CRTL+SHIFt+ENTER

    or

    F2=IFERROR(IFERROR(INDEX($A$1:$C$2500,SMALL(IF($A$1:$A$2500=$F$1,ROW($A$1:$A$2500)-ROW($A$1)+1),ROWS($A$1:A1)),2),INDEX($A$1:$C$2500,SMALL(IF($A$1:$A$2500=$F$1,ROW($A$1:$A$2500)-ROW($A$1)+1),ROWS($A$1:A1)),3)),"") With CRTL+SHIFT+ENTER.

  6. #6
    Registered User
    Join Date
    02-10-2016
    Location
    Philippines
    MS-Off Ver
    2010, Google spreadsheet
    Posts
    22

    Re: Get the values on row by row

    Already tried it.

    F2 without CRTL+SHIFt+ENTER is error.
    F2 with CRTL+SHIFT+ENTER is good but still don't have value on F6.

  7. #7
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Get the values on row by row

    In F2 copy paste below then hold control and shift together and then hit enter to make it array formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    array formulas are...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  8. #8
    Registered User
    Join Date
    02-10-2016
    Location
    Philippines
    MS-Off Ver
    2010, Google spreadsheet
    Posts
    22

    Re: Get the values on row by row

    Hi Hemesh,

    Thank you so much. It works.

  9. #9
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Get the values on row by row

    @ jrahm, You are welcome !

  10. #10
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Get the values on row by row

    you may use
    below array entered
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  11. #11
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: Get the values on row by row

    Quote Originally Posted by jrahm23 View Post
    Already tried it.

    F2 without CRTL+SHIFt+ENTER is error.
    F2 with CRTL+SHIFT+ENTER is good but still don't have value on F6.
    Try

    F2=IFERROR(IFERROR(INDEX($A$1:$C$11,AGGREGATE(15,6,(ROW($A$1:$A$11)-ROW($A$1)+1)/($A$1:$A$11=$F$1),ROWS($A$1:A1)),2),INDEX($A$1:$C$11,AGGREGATE(15,6,(ROW($A$1:$A$11)-ROW($A$1)+1)/($A$1:$A$11=$F$1),ROWS($A$1:A1)-COUNTIFS($A$2:$A$11,$F$1)),3)),"") and rag down

  12. #12
    Registered User
    Join Date
    02-10-2016
    Location
    Philippines
    MS-Off Ver
    2010, Google spreadsheet
    Posts
    22

    Re: Get the values on row by row

    Thanks for the help Hemesh and Shukla.

  13. #13
    Registered User
    Join Date
    02-10-2016
    Location
    Philippines
    MS-Off Ver
    2010, Google spreadsheet
    Posts
    22

    Re: Get the values on row by row

    Hi Hemesh,

    Can you help me again on this,

    I need to get the Result value of "Below Expectation" on a monthly basis.

    I used this formula but I think there's wrong on the formula.

    =ArrayFormula(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(INDEX($A$2:$A$100,SMALL(IF($B$2:$B$100=$I$1,ROW($B$2:$B$100)-ROW($B$2)+1),ROWS($B$1:B1))),INDEX($A$2:$A$100,SMALL(IF($C$2:$C$100=$I$1,ROW($C$2:$C$100)-ROW($B$2)+1),ROWS($C$1:C1)-SUMPRODUCT(--($C$2:$C$100=$I$1))))),INDEX($A$2:$A$100,SMALL(IF($D$2:$D$100=$I$1,ROW($D$2:$D$100)-ROW($B$2)+1),ROWS($D$1:D1)-SUMPRODUCT(--($D$2:$D$100=$I$1)*2)))),INDEX($A$2:$A$100,SMALL(IF($E$2:$E$100=$I$1,ROW($E$2:$E$100)-ROW($B$2)+1),ROWS($E$1:E1)-SUMPRODUCT(--($E$2:$E$100=$I$1)*3)))),INDEX($A$2:$A$100,SMALL(IF($F$2:$F$100=$I$1,ROW($F$2:$F$100)-ROW($B$2)+1),ROWS($F$1:F1)-SUMPRODUCT(--($F$2:$F$100=$I$1)*4)))),""))

    Screenshot 2016-02-12 at 12.01.14.png

  14. #14
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Get the values on row by row

    Your set up of sheet now is different as from Post #1
    Last edited by hemesh; 02-12-2016 at 05:31 AM.

  15. #15
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Get the values on row by row

    find attached, I have created a helper row shown in yellow you can either change the font colour to white or you can hide that row
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    02-10-2016
    Location
    Philippines
    MS-Off Ver
    2010, Google spreadsheet
    Posts
    22

    Re: Get the values on row by row

    Hi Hemesh,

    Thank you so much. :D

  17. #17
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Get the values on row by row

    You are welcome and thanks for the feedback

  18. #18
    Registered User
    Join Date
    02-10-2016
    Location
    Philippines
    MS-Off Ver
    2010, Google spreadsheet
    Posts
    22

    Re: Get the values on row by row

    Hi Hemesh,

    Base on the excel file you sent, is there also a way that I can get the corresponding month of every result?

    Like this.

    Screenshot 2016-02-16 at 08.34.44.png

  19. #19
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Get the values on row by row

    try below in J2 in the sheet I uploaded last

    copy paste below then hold control and shift together and then hit enter to make it array formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    drag down

    according to your screen shot it should be P2 with control shift and enter
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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] VBA Code replace old values to new values depends upon column values
    By johnlara in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-09-2015, 08:19 AM
  2. [SOLVED] VBA code to look up a list of values based on entered values and return all values.
    By dnwadams in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-30-2015, 10:14 PM
  3. [SOLVED] Extract values (row values and column values) with formula
    By bjnockle in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 08-17-2014, 10:13 AM
  4. [SOLVED] vba to Replace Old values by new values depends upon cell values in AC:AC col
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-25-2014, 08:15 AM
  5. Replies: 0
    Last Post: 10-12-2012, 01:08 PM
  6. [SOLVED] How to lookup values same row values different column values
    By kgonzalbo in forum Excel General
    Replies: 5
    Last Post: 05-22-2011, 01:49 AM
  7. assigning date entries to week values and month values to sum column C-N values C-
    By the accountant in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-20-2010, 09:52 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