Find Row of Large Value in Array & Return Values in Different Named Range

jon7187

New Member
Joined
Oct 5, 2009
Messages
10
Hi Guys, long time lurker 3rd time poster.

I have four named ranges (Segment, Keyword, Impressions and Dropdown) and I would like to create a formula-based ranking of keywords by impressions and clicks. Using the following array formula, I am able to return the correct values for impressions or clicks:

{=LARGE(IF(Segment=DropDown,Impressions),$H7)} where $H7 is the number ranking 1, 2, 3 etc.

My question is what array formula could be used to find which row in the array returned that number and then pulls the data from the same row in the other named ranges?


Essentially find row of {=LARGE(IF(Segment=DropDown,Impressions),$H7)} but return Keyword and Clicks on that row.

Other Notes: I cannot use pivot tables and some values might be the same which would make Vlookups not accurate for duplicate values.

Thanks in advance and below is a link to an example document to clarify this.

http://jonlorenzini.com/wp-content/uploads/2012/02/MrExcelQuestion.xlsx

-Jon Lorenzini
 
Last edited:

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Hi and welcome,

Here's an example for your first table, the other one would be similar:
Excel Workbook
IJK
2Drop Down
3Segment:fruit
4
5Sorted By Impression
6KeywordImpressionsClicks
7orange279164
8banana26348
9apple211
Example
Excel 2010
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.Why were you asked not to use PivotTables? I think they are a very good, flexible solution as shown in your workbook.
 
Upvote 0
Thanks for the reply circled chicken. I was asked cause one of the higher ups had issues in the past with pivot tables breaking on him so I was asked not to use them (plus I welcome a challenge but this one proved to best me).

These formulas worked for unique values but in the event the two keywords have the same number of impressions:

ie, changing dog from 88 to 181, the returned values are now:

dog, 181, 6 and
dog, 181, 6

instead of

elephant 181, 6 and
dog 181 16


Thanks,
Jon
 
Upvote 0
To add - I think the possibility for duplicate values is why a row function would work out better. Thanks again for your reply!
 
Upvote 0
Ah, I see what you mean. Do you only have 3 your looking or is that just for the example? If so, maybe try:
Excel Workbook
I
6Keyword
7elephant
Example
Excel 2010
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
 
Upvote 0
There is top 20 keywords but I can always build out a really long one haha

thanks again for the continued help.
 
Upvote 0
The following should work for as many as necessary rather than doing a much longer version of the earlier formula:
Excel Workbook
I
6Keyword
7elephant
Example
Excel 2010
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
 
Upvote 0
Actually that can be shortened to just:
Excel Workbook
I
6Keyword
7elephant
Example
Excel 2010
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
 
Upvote 0
Worked like a charm. Thanks for your help! If you are ever in NYC I'll buy you a beer.

congratulations-you-are-a-hero.gif


I'll probably throw a post up on this for other search engine marketers to use. Do you have a site I should link to for credit?
 
Upvote 0
Haha your welcome - nice picture!

I just posted a shortened version of that, I realised some of the earlier formula was unnecessary.

If your posting a link maybe just do one to MrExcel.com - helped me loads too!
 
Upvote 0

Forum statistics

Threads
1,215,227
Messages
6,123,743
Members
449,116
Latest member
alexlomt

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top