Computing.Net > Forums > Office Software > Need Excell Formula (urgent)

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Need Excell Formula (urgent)

Reply to Message Icon

Name: Fredledingue
Date: August 22, 2003 at 14:17:10 Pacific
OS: W98SE
CPU/Ram: P4 1.8Ghz 512 DDR
Comment:

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 17

01_m
BC 24 96.00%
D 1 4.00%
Total 25

02_f
BC 8 50.00%
D 3 18.75%
X 3 18.75%
AC 1 6.25%
AN 1 6.25%
Total 16

etc...
(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!



Sponsored Link
Ads by Google

Response Number 1
Name: Fredledingue
Date: August 22, 2003 at 14:26:27 Pacific
Reply:

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%


0

Response Number 2
Name: Bryco
Date: August 22, 2003 at 18:06:49 Pacific
Reply:

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


0

Response Number 3
Name: Taxi
Date: August 23, 2003 at 08:48:24 Pacific
Reply:

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


0

Response Number 4
Name: Fredledingue
Date: August 23, 2003 at 14:40:29 Pacific
Reply:

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.



0

Response Number 5
Name: Bryco
Date: August 23, 2003 at 19:47:00 Pacific
Reply:

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.

FindNth.xls

Right click on the link and select 'Save Target As'

HTH
Bryan


0

Related Posts

See More



Response Number 6
Name: Bryco
Date: August 23, 2003 at 19:55:58 Pacific
Reply:

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


0

Response Number 7
Name: wizard-fred
Date: August 23, 2003 at 22:41:13 Pacific
Reply:

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.


0

Response Number 8
Name: Fredledingue
Date: August 24, 2003 at 15:11:44 Pacific
Reply:

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.



0

Response Number 9
Name: wizard-fred
Date: August 24, 2003 at 15:49:58 Pacific
Reply:

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.


0

Response Number 10
Name: Bryco
Date: August 24, 2003 at 17:21:50 Pacific
Reply:

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


0

Response Number 11
Name: Fredledingue
Date: August 25, 2003 at 12:47:11 Pacific
Reply:

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.



0

Response Number 12
Name: Fredledingue
Date: August 26, 2003 at 14:07:41 Pacific
Reply:

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.



0

Response Number 13
Name: Bryco
Date: August 26, 2003 at 14:31:47 Pacific
Reply:

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


0

Response Number 14
Name: fredledingue
Date: August 27, 2003 at 11:34:56 Pacific
Reply:

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.


0

Response Number 15
Name: Bryco
Date: August 27, 2003 at 12:13:34 Pacific
Reply:

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


0

Response Number 16
Name: Fredledingue
Date: August 28, 2003 at 09:23:41 Pacific
Reply:

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!


0

Response Number 17
Name: wizard-fred
Date: August 28, 2003 at 21:15:33 Pacific
Reply:

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 10

T_2
A 81 90%
B 9 10%
Total 90

By 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 90

Tot 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.


0

Response Number 18
Name: Bryco
Date: September 1, 2003 at 07:00:20 Pacific
Reply:

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



0

Response Number 19
Name: Bryco
Date: September 12, 2003 at 14:50:43 Pacific
Reply:

I will remove the spreadsheet from my webpage on 14Sep PM unless advised otherwise.

Bryan


0

Sponsored Link
Ads by Google
Reply to Message Icon

Publisher 2000/XP Interoffice Messaging Sol...



Post Locked

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


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Need Excell Formula (urgent)

Excel Formula Help www.computing.net/answers/office/excel-formula-help/2797.html

Excel Formula www.computing.net/answers/office/excel-formula/6716.html

Help with excel formula www.computing.net/answers/office/help-with-excel-formula/4165.html