• 414K Members
• 7,383 Online
• 477K Conversations
SOLVED

## Excel formula Help

Occasional Contributor

# Excel formula Help

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

# Re: Excel formula Help

For the country name in F2:

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

# Re: Excel formula Help

@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?

# Re: Excel formula Help

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

# Re: Excel formula Help

@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!

# Re: Excel formula Help

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

# Re: Excel formula Help

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

# Re: Excel formula Help

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

# Re: Excel formula Help

yes, because I just pick one column for trial in the last shot I sent you. 😀

# Re: Excel formula Help

yes, because I just pick one column for trial in the last shot I sent you.
Solution

# Re: Excel formula Help

So it wasn't really your desired result.

My solution requires Power Query.

The result from PQ is loaded into the pivot table.

# Re: Excel formula Help

big thanks from your help again!

# Re: Excel formula Help

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

# Re: Excel formula Help

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.

# Re: Excel formula Help

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

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
23 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies