Zahlen gruppierte Daten mit VLOOKUP?

390
user196704

Ich habe einen riesigen Datensatz mit Einkommensstufen in Spalte B und BMI-Werte in Spalte C:

 totinc BMI 15600>18200 19.5 18200>20800 27.4 20800>23400 22 23400>26000 29.5 

Und so weiter. Welche Formel kann ich verwenden, um diese Daten nach der Gesamteinkommensgruppe zu ordnen, z. B. die Zuordnung der Nummer 1 in Spalte A zu denen der Gruppe 15600> 18200 usw

Ich habe versucht, eine VLOOKUP-Formel zu verwenden, aber sie funktioniert nur, wenn ich eine Zahl und keine mit den Symbolen> oder <verwende und ich keine Zeit habe, die Werte zu ändern.

Jede Hilfe wäre sehr dankbar,

Sam

0

1 Antwort auf die Frage

0
Marcks Thomas

Numerical sorting works on numbers. Any function you would like to use for this would at some point have to transform '15600>18200' into numerical data. Since this transformation would be inevitable internally, I recommend you change the representation of total income altogether, as this would make more sense semantically as well.

If it would be too time consuming to do this manually, the process can probably be automised, but the easiest way to go about doing that will depend on how you are storing and manipulating the dataset.

For example, one way to do this would be to copy and paste into Notepad, do a Find & Replace, and copy and paste back.  Or save as CSV, edit with Notepad, and read back in. Scott vor 11 Jahren 0