Forum Discussion

RohitNaval's avatar
RohitNaval
Copper Contributor
May 03, 2020

Not getting an option to sort largest to smallest, only A to Z

I have a problem with my Excel spreadsheet where I do not get an option to sort numerically in descending order - largest to smallest. I only get an option to sort alphabetically. The cell values are either blank or numeric. Each cell is using the following formula - =IFERROR(VLOOKUP($P10, May3List, 6, FALSE), “”).

  • RohitNaval 

    In addition, you don't have blank cells, you have cells with empty texts returned by =IFERROR(...,""). As soon as we have texts within the range, even empty, Excel suggests to sort alphabetically. With =IFERROR(...,0) most probably that will be numeric sorting.

  • Riny_van_Eekelen's avatar
    Riny_van_Eekelen
    Platinum Contributor

    RohitNaval Then I suspect that your "numbers" are in fact texts. What do you get when you enter =ISNUMBER(<cell reference>) where the cell reference is a cell where you have the number? FALSE? Then it's not a number. If not, perhaps you can upload an example of your schedule.

    • RohitNaval's avatar
      RohitNaval
      Copper Contributor
      ISNUMBER returns TRUE for cells where I have a number and FALSE where the cells are empty.
  • RohitNaval 

    In addition, you don't have blank cells, you have cells with empty texts returned by =IFERROR(...,""). As soon as we have texts within the range, even empty, Excel suggests to sort alphabetically. With =IFERROR(...,0) most probably that will be numeric sorting.

  • annabellas's avatar
    annabellas
    Copper Contributor

    RohitNaval I tried filtering my numbers but it just went 1, 220, 34, 460 etc instead of smallest to largest. I fixed it by converting the column I was trying to filter into NUMBER and then doing text to column. For some reason it wasn't converting to numbers until I did text to column. After that it allowed me to filter smallest to largest (1, 34, 220, 460 etc).

Resources