Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi,
I have an urgent problem: I have these datas:
Each list is different and doesn't have all the letter symbols and not in the same order.01_f
BC 12 70.59%
BI 2 11.76%
X 2 11.76%
D 1 5.88%
Total 1701_m
BC 24 96.00%
D 1 4.00%
Total 2502_f
BC 8 50.00%
D 3 18.75%
X 3 18.75%
AC 1 6.25%
AN 1 6.25%
Total 16etc...
(there are hundreds of lists like that all differents)then I have this list of letter symbols that I have to fill in, the full list:
BC
AC
CC
BI
LI
FI
AN
AA
X
U
D
T
I need, for each list, to look for the % in front of one letter symbol and put it in front of the same letter symbol in the full list.
For example, from list one I need to take the % in front of BC (70.59%) and copy it in front of BC in the full list.
Then do it again with BI, X etc. Then do it again with the next lists...to have the following table:
BC 70.59% 96.00% 50.00% 60.00%
AC 6.25% 4.00%
CC
BI 11.76%
LI
FI 4.00%
AN 6.25%
AA
X 11.76% 18.75% 12.00%
U
D 5.88% 4.00% 18.75% 20.00%Is there any formula to do this?
Thanks very much for helping!

Sorry the message board won't copy tabs, so imagine that _____ are empty cells.
This what I need:
BC_____70.59%______96.00% 50.00% 60.00%
AC_____ _____ _____ _____6.25% 4.00%
CC______ _____ _____ _____ _____ _____
BI _____11.76%______ _____ _____ _____
LI ______ _____ _____ _____ _____ _____
FI ______ _____ _____ _____ _____ 4.00%
AN______ _____ _____ _____ 6.25% _____
AA______ _____ _____ _____ _____ _____
X ______11.76%_____ _____18.75% 12.00%
U ______ _____ _____ _____ _____ _____
D _______5.88% 4.00% ______18.75% 20.00%

In your last post why is there a blank cell before and after 70.59%? Does your data not correctly represent what you are wanting to accomplish?
I do not see the correlation and therefore can not offer any solution. Understanding a problem is the first step to resolving it.
In your first post:
01_f
BC 12 70.59%
BI 2 11.76%
X 2 11.76%
D 1 5.88%
Total 17
Is "01_f" and "Total 17" irrelevant to the desired results?And, is "BC 12 70.59%" all in one cell and is the second value ("12") irrelevant too?
I do not know if I am capable of helping. Perhaps a better understanding will help.
Bryan

1st convert ur file, (data/convertion) in excel with a "blank" for separator option. U'll normally obtain 3 columns for each line. Then put a tittle on the top of each column, select all and have a pivot table selecting "letter field" in line and percent datas detail in datas. That's all done

Bryan,
I hope you will come back to this post because I realy need it!
I'm sorry.
It's very difficult to talk excell on message board wich don't allow this kind of formating.This is the raw datas:
_____01_f______
BC__12_70.59%
BI____2_11.76%
X____2_11.76%
D____1_5.88%
Total_17_ ___________ represent empty cell
_ or longer represent cell esparators (prolonged to render a better visual idea of the excell table.)So BC, 12 and 70.59% are in three different cells. I have 3 collumns of datas.
01, f are irrelevant to the result
Total and 17 too.
The value after the letter code ie: 12 is irrelevant too.Are only relevant the percentages.
I want to copy/paste the percentages to a list in front of the same lettercode.
The problem is that the list is longer than the lists of the raw datas and in a different order.So if I copy/paste the column it won't match with the list.
ie: find BC, go two cells on the right, copy the % value, go to another list, find BC in this list, go one cell on the right, paste the % value.
Thanks for helping.

I placed a file on my personal webpage for a limited time for you. It is 25.5kb in size.
The workbook contains all the info you need.
The workbook contains a Macro and if your Excel security is correctly you should be promted to decide if it is safe to open. It is.
Let me know once you have a copy so I can take it off my site.
Also let me know if you have any questions about it.
Right click on the link and select 'Save Target As'
HTH
Bryan

So as to give proper credit for the formula/macro used in my worksheet.
I got it from http://www.ozgrid.com/VBA/TwoColLkUp.htm but it was a two column lookup, User definded function, formula that I modified for my use.
Bryan

I think you are making a fundamental statistical/mathematical mistake in using the percentage figure. You cannot use it to make a meaningful comparison, especially if you are trying to do a comparison based on your letter symbols. You will not be able to get correct cross tab totals.

Many thanks, Bryco.
I never used macro in Excell, so it's totaly new for me, but as soon as I understand (and read carefuly your explanations) I will try it.
I downloaded the file so you can delete it from your site. Thanks._____________
Wizard Fred,
No, I made charts manualy and they look very nice.

A good looking chart is not necessarily accurate. I hope that you are not using the charts for any important scientiific or legal matter. I have worked for lawyers analyzing evidence and have many times found errors like the one that you are doing.

Fred, the instructions appear to be many many words but simply use it as you would any other function. The difference is that it is not part of Excel so you have to have it's worksheet active/open in order to access the function found under "User Defined"
Using it is quite easy once you get the hang of it.
Regards,
Bryan

Bryco
Sure. I didn't have the time today, but I will try it tomorrow certainly.
Thanks a lot.
____________________Wizard Fred
What kind of mistake or misinterpretation could come out of this?
If you count the % formula correctly the chart is accurate and reflect the reality.

Bryco,
I tried the macro and it works! Many Thanks!!!
I did a few tables already!
I had to modify the formula because it didn't check occurances properly. It mix them.
For each occurence you have to change the table lookup area.Someone else sent me a Vlookup formula but I didn't try it yet.
It look pretty much the same.

I can not imagine what you mean by it Mixed them.
The only thing that I have ever had to change was which occurance I wanted it to return. In your data there is no need to sort them. In mine I had to sort by date in order to get it to return the values in the correct order as they occurred.
If you are having to change the lookup table then you are spending to much effort than is needed.
If you set the table's parameters on the first one with the correct $$ references then you should not need to change them again. Refer to the formula as it is shown within the formular bar for the sample I made that contains your data. If you go accross the top row the only things that change in the formula is the occurance number.Either way, you got it working for you and that is good.
Bryan

If I select all the datas range ie: $A$1:$C$19 for all the occurences, in the first result column I will have the values of the next occurence if the value of the curent occurence is zero (or not found in the first occurence). ie, if it doesn't find a letter symbol in the first list, it will look up in the next list and put the value in the same column, instead of puting the value of the second occurence in the second column.

I now understand but that is correct.
It will find the first occurance not matter how far down your list it is located.
Since it is the first occurance then it will list it in the first position available.I am at work at the moment but I will look at it again to see if an 'IF' formula might work. How many sets of data or how many occurances exist on your typical speadsheet?
Bryan

between 2 to 114 occurences.
Note that this formula
=VLOOKUP($F1;$A1:$C10;3;FALSE)
does excately the same as the macro.(copy-paste deosn't work, you have to redo the formula with the formula bar)
Now I have two possibilities!

Lies, Lies, Damn Statistics.
You can't average averages.
An average of averages is meaningless if the sample sizes are not comparable.This is an extreme example why you cannot use percentages.
Using your data format with 2 attibutes A & B
T_1
A 1 10%
B 9 90%
Total 10T_2
A 81 90%
B 9 10%
Total 90By your method
A B Tot
T_1 10% 90% 100%
T_2 90% 10% 100%Tot 100% 100% 200%
Avg 50% 50% 100%By the correct method
A B Tot
T_1 1 9 10
T_2 81 9 90Tot 82 18 100
82% 18% 100%
Avg 41 9 50
82% 18% 100%As you can see that without the occurrences of each sample item, you have no true idea of the total number in each group and the total number observation in the whole data set.
I hope this explains why you can't use the percentage value.
I hope the format holds that you can see the columns.

The VLOOKUP formula you posted contains an error. Otherwise it is a normal VLOOKUP formula.
It differs from the FindNth formula where it will only look up a single occurance. FindNth will look up several.
However the FindNth is not applicable since each range does hold some relevance to your final table.I don't know how your data is compiled: be it new data is added or if each time you collect the data it creates a whole new sheet.
Right click and select "Save Target As" on the following link. It contains no Macros.
FredTest.xls 28.5kb. I noticed the server is a little slow connecting today.Although it will take much effort to do so I believe you need to name all of your ranges.
If you have any questions then post back.
Also let me know after you get the file so I can take it off of my personal webpage.
HTH
Bryan

![]() |
Publisher 2000/XP
|
Interoffice Messaging Sol...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |