+ Reply to Thread
Results 1 to 5 of 5

I want a value to appear differently in new cell. (pic inside)

  1. #1
    Registered User
    Join Date
    12-14-2017
    Location
    Pattaya,Thailand
    MS-Off Ver
    2010
    Posts
    11

    I want a value to appear differently in new cell. (pic inside)

    Untitled.jpg

    From sheet1. There are 2 sets of data with 2 types I want them to appear in sheet2 like in the picture.
    In sheet2,column A shows Types and column B shows Sum of each type.
    And most important is to begin a new row when there are more data types in sheet1, like Data 1 c and Data 2 d, so it adds more rows for Type c and Type d.

    Can it be done and can you teach me please? Thank you

    Edit: The type of data indicates by last letter in Sheet1 column A(a,b,c,d..). Don't know if this helps.
    Edit2: Typo

    PS. I think I did post in the wrong forum before so I didn't get any reply there.
    Last edited by GPMan; 12-14-2017 at 06:01 AM.

  2. #2
    Forum Guru Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2013, 2010, 2007
    Posts
    4,633

    Re: I want a value to appear differently in new cell. (pic inside)

    This is simple, using Power Query. Format your data in Sheet1 as a Table with Column Headers "Data" and "Value", then use:

    Please Login or Register  to view this content.


    Not sure where to put Power Query code? See https://excel.solutions/2017/11/powe...te-code-video/

    Your profile states you are using Excel 2010 - Power Query is a free addin - see https://www.excelcampus.com/install-power-query/
    Attached Files Attached Files
    =IF(question_answered=TRUE,mark_thread="solved")
    =IF(someone_helped=TRUE,Reputation=Reputation+1)


    Walking the tightrope between genius and eejit...

    My Excel blog: http://excel.solutions

  3. #3
    Registered User
    Join Date
    12-14-2017
    Location
    Pattaya,Thailand
    MS-Off Ver
    2010
    Posts
    11

    Re: I want a value to appear differently in new cell. (pic inside)

    Thank you so much, Olly. I have not tried it yet though,but will do in the morning.

  4. #4
    Registered User
    Join Date
    12-14-2017
    Location
    Pattaya,Thailand
    MS-Off Ver
    2010
    Posts
    11

    Re: I want a value to appear differently in new cell. (pic inside)

    Quote Originally Posted by Olly View Post
    This is simple, using Power Query. Format your data in Sheet1 as a Table with Column Headers "Data" and "Value", then use:

    Please Login or Register  to view this content.


    Not sure where to put Power Query code? See https://excel.solutions/2017/11/powe...te-code-video/

    Your profile states you are using Excel 2010 - Power Query is a free addin - see https://www.excelcampus.com/install-power-query/
    Problem found. I have to make 2 tables for "Data"(Table1) and "Value"(Table2) because they're seperated columns so the current code doesn't work. Seems like it couldn't find "Value" in the table, I guess.
    I've been trying to make 2 Tables in to 1 and add more source for table in Power Query, but it turned out that I was dumber than I thought.

    Edit1.2: May I know if a prefix could be added in "Data Type" column, Sheet2? Like 'product type a'.
    Edit2.2: Some types of "Data" actually contain a number in suffix and a letter in the name in stead of number like this "Data 1 2a" , Data 2 3b, Data A 2a , Data B 3b". Is this a part of the problem?
    Last edited by GPMan; 12-15-2017 at 12:11 AM.

  5. #5
    Forum Guru Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2013, 2010, 2007
    Posts
    4,633

    Re: I want a value to appear differently in new cell. (pic inside)

    I am not sure what you are asking me? If you're still stuck, then please attach your workbook, so I can see what you're trying.

+ 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