SOLVED

Excel formula Help

Copper Contributor

Hi all,

 

I have a problems on my formula. 

I have two worksheet 1 and 2. 

for worksheet 1, the yellow highlighted contains all the country name but i have to use worksheet 2 as a data set (green highlighted; which contains country name with item 'frequency'), and to find out the related frequency for those items in worksheet 1. I've tried Index and match functions but it can't help. Could anyone help on solving the problems? 

thanks!

(Attached a testing file for reference)

14 Replies

@doraymi 

For the country name in F2:

=VLOOKUP(F2,Sheet2!$A$2:$B$9,2,FALSE)

@doraymi , could you please clarify - you have 6 columns in Sheet1 with country names, for which one you need the frequency? Or you'd like calculate the frequency based on these columns?

@Detlef Lewin Big thanks for your prompt reply! i've got the desired result. I would like to ask a more questions...after searching the frequency for each column (F, H, J, L, N, P and R) and gives out column (G, I, K, M, O and Q), can I further sort out all the 'High' frequency country?(say for row 2, sort out Thailand, Hong Kong, Indonesia and Thailand), in order to achieve the goal in presenting the countries which have high frequency against the company name (column c) in pivot table. thanks.

@Sergei Baklan yes, i'd like to calculate frequency for all six column, and then to list out all the most "high frequency" items (it might have more than 1 high frequent country in each row), so as to use those information and compare with company name (column C) in the pivot table. thanks! 

@doraymi 

Could you provide a file with your desired result? What should the pivot table look like?

 

this would be my desired result, in which list out the most high frequency (might not more than one country) against list of companies

@doraymi 

Hm, your pivot table shows only a grand total of 6. But it should be 42 (6 rows by 7 columns).

 

yes, because I just pick one column for trial in the last shot I sent you. :grinning_face:
yes, because I just pick one column for trial in the last shot I sent you.
best response confirmed by doraymi (Copper Contributor)
Solution

@doraymi 

So it wasn't really your desired result.

My solution requires Power Query.

The result from PQ is loaded into the pivot table.

 

big thanks from your help again!

@Detlef Lewin sorry for bothering again, I've tried to replicate a pivot table as your file sent to me but fails, could you please help to advise on how to put the 'Frequency' to the pivot table? thanks.

@doraymi 

As I stated before the data for the pivot table comes from Power Query.

Open the PQ editor and see the queries on the left pane and the steps for each query on the right pane.

 

@Detlef Lewin I've learned how to get it! thanks!

1 best response

Accepted Solutions
best response confirmed by doraymi (Copper Contributor)
Solution

@doraymi 

So it wasn't really your desired result.

My solution requires Power Query.

The result from PQ is loaded into the pivot table.

 

View solution in original post