Identifying 2 Most Right Columns


See attached - a very basic sheet "PastedData".

I have a team of travelling salesmen who go from city to city (!) selling their wares.
The sheet shows the sales for each salesman/woman for each city.
The number of cities will vary - and this is the key to my problem.

I want a second sheet to show the Salesmans Name in column A.
Column C should show the RIGHT most city from the "PasteData" sheet.
Column B should show the second RIGHT most city data.

Patrick O'DeaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Curt LindstromCommented:
Try this one


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Patrick O'DeaAuthor Commented:
Perfect !

And I understand it too!
Saqib Husain, SyedEngineerCommented:

Are you sure that the formula works correctly? The logic is ok but the ranges do not seem right.

The cell B2 refers to PastedData!1:1 where it should have been PastedData!2:2

Correct me if I am wrong.

Curt LindstromCommented:

You're right of course! Thanks for correcting me!

The formula should start with PastedData!2:2  in B2 and C2 before it's copied down as far as required.

The result in the sample is the same but it will need to be corrected to work properly for other data in sheet "PastedData"

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.