Skip to content

Instantly share code, notes, and snippets.

@mPastuszko
Created April 14, 2012 14:34
Show Gist options
  • Save mPastuszko/2384806 to your computer and use it in GitHub Desktop.
Save mPastuszko/2384806 to your computer and use it in GitHub Desktop.
Przeliczanie WS na steny
u = [] # górne granice przedziałów (bez ostatniego)
k = "E3" # komórka
s = ""
u.each_index{|i| s +="JEŻELI(#{k} <= #{u[i]}; #{i+1}; "}
s += "10" + ")" * u.size
s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment