Jul 16 2019 02:49 AM
Hi,
I have recently been asked a question relating data imported from a csv file into Excel worksheet. I want to know name of the cities with lowest and highest revenue. I did some online research and I found out that lookupvalue function can be useful in solving this problem. However, I didn't find any topic pertaining to handling the result of this function when it's a table (multiple value). I appreciate it if you can help me.
Jul 16 2019 03:13 AM
Please attach your sample file.
Jul 16 2019 06:46 AM
Here is the sample file. But beware that the data in city column should be split to include only the city name (since the state and country has their own dedicated columns).
Jul 16 2019 07:41 AM
Solution
Hi
I inserted two columns after City, then selected column F and did Data > Text to Columns > Comma delimiter to split out State and Country. I then deleted the inserted columns G and H.
I inserted 4 rows at the top of the sheet and in cell F2 entered the formula
=INDEX(F6:$F$5523,MATCH(MAX(E6:E5523),$E$6:$E$5523,0)) for the max value
=INDEX(F7:$F$5523,MATCH(MIN(E6:E5523),$E$6:$E$5523,0)) for the min value
See attached file
Jul 16 2019 09:44 AM
Jul 16 2019 07:41 AM
Solution
Hi
I inserted two columns after City, then selected column F and did Data > Text to Columns > Comma delimiter to split out State and Country. I then deleted the inserted columns G and H.
I inserted 4 rows at the top of the sheet and in cell F2 entered the formula
=INDEX(F6:$F$5523,MATCH(MAX(E6:E5523),$E$6:$E$5523,0)) for the max value
=INDEX(F7:$F$5523,MATCH(MIN(E6:E5523),$E$6:$E$5523,0)) for the min value
See attached file