1w6 uRPG 1w6 uRPG
  • Anmelden
  • Öffentlich

    • Öffentlich
    • Gruppen
    • Beliebt
    • Verzeichnis

http://sn.1w6.org/file/clacke-20200905T054202-cay9xsn.html

http://sn.1w6.org/file/clacke-20200905T054202-cay9xsn.html
omg it worked! The linear search always finds the first hit from top to bottom, but I just need to do the calculation bottom-up and the first value found will be the highest value. So if I have a list of 5 lines A1:B5, then B5 = A5, and B4 =IF(ISERROR(VLOOKUP(A4,A5:B$5,2,0)),A4,VLOOKUP(A4,A5:B$5,2,0) + 1).

Sweet.

Would have been sweeter to just index into SORTED(A1:A5, C1:C5) (assuming the e.g. prices are in C1:C5), but working around this kind of nonsense is kind of fun too on a Saturday morning.

Nachrichten, in denen dieser Anhang erscheint

  1. clacke clacke

    omg it worked! The linear search always finds the first hit from top to bottom, but I just need to do the calculation bottom-up and the first value found will be the highest value. So if I have a list of 5 lines A1…

    Saturday, 05-Sep-20 04:48:42 UTC
  • Hilfe
  • Über
  • FAQ
  • AGB
  • Privatsphäre
  • Quellcode
  • Version
  • Kontakt

1w6 uRPG ist ein Mikrobloggingdienst von Arne (Drak) Babenhauserheide. Es wird mit der Mikrobloggingsoftware StatusNet (Version 1.1.1-release) betrieben, die unter der GNU Affero General Public License erhältlich ist. The running version includes the patches from draketo.de/proj/statusnet-patches.

Creative Commons Attribution 3.0 Alle Inhalte und Daten von 1w6 uRPG sind unter der Creative Commons Attribution 3.0 Lizenz verfügbar.