+ Reply to Thread
Results 1 to 15 of 15

get remarks value base on the right CODE No.

  1. #1
    Forum Contributor
    Join Date
    08-20-2015
    Location
    philippines
    MS-Off Ver
    2013
    Posts
    260

    get remarks value base on the right CODE No.

    Can anyone help with this scenario I have a data that have different name but same CODE No. I want to get the marks base on the CODE no. In column B Sheet 2 will put the marks base on the CODE no. in Sheet DATA.
    I attached Image for the data and expected result. Also i put the example documents. Thank you in advance.

    This the data Sheet name: DATA

    Data.PNG

    and this is the expected result Sheet name Sheet2

    Attachment 731829
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by jasond1992; 05-10-2021 at 10:09 AM.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: get remarks value base on the right CODE No.

    Should the first CODE in G4 be 111-221? Since there is "x" for that code, also 111-222 has only one "x"

    Try in J4:

    Please Login or Register  to view this content.
    Drag down and accross to column K
    Quang PT

  3. #3
    Forum Contributor
    Join Date
    08-20-2015
    Location
    philippines
    MS-Off Ver
    2013
    Posts
    260

    Re: get remarks value base on the right CODE No.

    oww i'm so sorry it's "111-222" I'll try your formula. Thank you sir for your reply.

  4. #4
    Forum Contributor
    Join Date
    08-20-2015
    Location
    philippines
    MS-Off Ver
    2013
    Posts
    260

    Re: get remarks value base on the right CODE No.

    I've tried it sir but the result that I got is the CODE no. and also sir I'm confused about G4 cause on my example is not included the G Column. all i want is to put the remarks value base on the Code No.
    Last edited by jasond1992; 05-10-2021 at 01:17 AM.

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,590

    Re: get remarks value base on the right CODE No.

    In E3 then copied down
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  6. #6
    Forum Contributor
    Join Date
    08-20-2015
    Location
    philippines
    MS-Off Ver
    2013
    Posts
    260

    Re: get remarks value base on the right CODE No.

    Thank you so much sir for you help But sir don't need to mention the TEST_001. I Just want to put all the marks from DATA to the specific CODE number in Sheet2

  7. #7
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,590

    Re: get remarks value base on the right CODE No.

    In E3 and copied down

    =IFERROR(INDEX(Data!$C:$C,AGGREGATE(15,6,ROW(Data!$C$2:$C$19)/(Data!$B$2:$B$19=$D3),COUNTIF($D$3:$D3,$D3))),"")

  8. #8
    Forum Contributor
    Join Date
    08-20-2015
    Location
    philippines
    MS-Off Ver
    2013
    Posts
    260

    Re: get remarks value base on the right CODE No.

    Quote Originally Posted by kvsrinivasamurthy View Post
    In E3 and copied down

    =IFERROR(INDEX(Data!$C:$C,AGGREGATE(15,6,ROW(Data!$C$2:$C$19)/(Data!$B$2:$B$19=$D3),COUNTIF($D$3:$D3,$D3))),"")
    the result sir stop on 111-225 only gets the TEST_001 marks
    111-226 onwards is 0 result didn't get the other
    Last edited by jasond1992; 05-10-2021 at 04:36 AM.

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,238

    Re: get remarks value base on the right CODE No.

    The formula in post #2 gives your expected results (if you follow the instruction about copying Across and Down)

  10. #10
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,590

    Re: get remarks value base on the right CODE No.

    What is the criteria to change over from _001 to _002. It is changing 225 to 226. But both names contain these codes.

  11. #11
    Forum Contributor
    Join Date
    08-20-2015
    Location
    philippines
    MS-Off Ver
    2013
    Posts
    260

    Re: get remarks value base on the right CODE No.

    The scenario sir is have 3 different names but same CODE LIST. Every names have a specific CODE to put a remarks.
    And on my side I want to get all the remarks base of the CODE List of 3 Different names. That's why I put the TEST_001, TEST_002 and TEST_003.

  12. #12
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,238

    Re: get remarks value base on the right CODE No.

    Not required in your original post!

    Try

    =IFERROR(INDEX(A:A,AGGREGATE(15,6,ROW($C$2:$C$55)/($C$2:$C$55<>""),ROW(1:1))),"")

    Copy across and down

  13. #13
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,590

    Re: get remarks value base on the right CODE No.

    In E3 then copied down

    Please Login or Register  to view this content.
    Attached Files Attached Files

  14. #14
    Forum Contributor
    Join Date
    08-20-2015
    Location
    philippines
    MS-Off Ver
    2013
    Posts
    260

    Re: get remarks value base on the right CODE No.

    Quote Originally Posted by kvsrinivasamurthy View Post
    In E3 then copied down

    Please Login or Register  to view this content.
    Thank you so much sir. It's working.

  15. #15
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,238

    Re: get remarks value base on the right CODE No.

    The results are the same as those from the formula given in post #2!!!!!

+ 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. VBA Code to generate data base and update every day
    By aliastefan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-18-2020, 09:19 AM
  2. One of the remarks won't come out
    By karasu in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-16-2017, 12:14 PM
  3. VBA code to specify the Hyperlink base box
    By Gryfphon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-24-2017, 05:15 PM
  4. [SOLVED] In Remarks Column the Remarks should be as described as the attached excel file
    By robin.das077 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-30-2013, 03:38 AM
  5. [SOLVED] Find the code that similar with data base
    By yukioh in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-03-2013, 07:24 AM
  6. please explain data base code
    By shaik.ibrahim in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-22-2011, 03:36 PM
  7. How do i set up a data base in excel for code 128
    By charlieking4747 in forum Excel General
    Replies: 1
    Last Post: 06-09-2006, 01:30 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