• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

VBA formula needed to lookup values [SOLVED]

Dear all,


I have an excel sheet which i based like this:

[pre]
Code:
Name:        John; Josh; Grace

Activity 1 : 10%
Activity 2 :        20%
Activity 3:              20%
Activity 4:         10%
I would no like to create a VBA code which can show the name with the relevant activities. Kinda like:

John; activity 1; 10%
Josh; activity 2; 20%
Josh; activity 4; 10%
Grace; activity 3; 20%
[/pre]
Anybody tips on how I can achieve it?


Dear regards,


Marc
 
Will each activity in first table only have 1 number/person for that line, or is it possible multiple people will have data in the same row?
 
Not directly with the current forum. You can upload a workbook to a file sharing site and post a link here. One of the things I'm most excited about the new forum we'll be going to soon is that it has the ability to directly upload files. =)


Working on the problem with VB...
 
I think I may have found an answer. Your problem is often referred to as a "reverse Pivot", as your current layout looks like a PivotTable report, but you want the raw data layout. Check out this post:

http://superuser.com/a/78464


Granted, this isn't a formula so it's not "live", but I think it's what you are looking for, and it's certainly one of the easier ways.
 
Back
Top