Ranking

Mjb2

New Member
Joined
Feb 8, 2022
Messages
3
Office Version
  1. 365
Platform
  1. MacOS
Hi, I have imported some data from an online database and when I try to rank the values in that column it doesn't work.
If I then type in those same values into my spreadsheet in another column I am able to rank them.
Does anyone know why this is ?

Cheers
mjb
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hi Mjb2,

The most common reason for having challenges with data downloaded from websites is the presence of Non-Breaking Spaces, often represented as &nbsp and sometimes called whitespace, which are used for better visual presentation.

You may also have other characters, such as spaces, preventing your downloaded values from being interpreted as numbers.

Here's one way to clean out whitespaces (characters held as decimal 160). I'm showing the column A which contains some non-breaking spaces, column B fails to rank due to these, column C uses SUBSTITUTE to remove them and column D can now rank the new data in column C.

Book3
ABCD
1From OnlineRANKSUBSTITUTERANK
2 11#VALUE!114
322 22#VALUE!22221
4221223
59 9#VALUE!992
61417
71 #VALUE!17
82326
93235
Sheet1
Cell Formulas
RangeFormula
B2:B9B2=RANK(A2,$A$2:$A$9)
C2:C9C2=SUBSTITUTE(A2,CHAR(160),"")+0
D2:D9D2=RANK(C2,$C$2:$C$9)
 
Upvote 0
Solution
Thanks Toadstool, I'll try that later today.

Cheers
 
Upvote 0
Thanks Toadstool, it worked really well.
Cheers

mjb2
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,738
Members
448,988
Latest member
BB_Unlv

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