google-app-engine


Google Sheet: Generate an automatic schedule


Please refer here for the Google Sheet.
I need to program a macro for the blue arrow at "Pill box visualiser" section such that when I click the button, a schedule is generated following the algorithm below:
All the cells from C4 downwards in the "Medication Record" tab will be scanned.
E.g. For "Medication Record"!C4, J4 = "on" (once every night) and L4 = "Y" (medication is taken regardless of whether patient has dialysis that day or not), all the cells from "Basic Info"!B50-H50 are added with a string of text combining "Medication Record"!C4, H4 and I4 --> "Calcium acetate 1 tab".
Next, for "Medication Record"!C5, J4 = "om" (once every morning" and L4 = "N" (medication is only taken when patient doesnt have dialysis on that day), "Basic Info"!B17-H17 will be scanned for the value "x". In this case, C17,E17,G17 and H17 do not have "x" i.e. no dialysis, hence C48, E48, G48 and H48 (Tues, Thurs, Sat and Sun morning) are added with a string of text combining "Medication Record"!C5, H5 and I5 --> "Bisoprolol 0.5 tab"
If J="bd", medications are added to "Morning" and "Evening".
If J="td", medicationd are added to "Morning", "Afternoon" and "Evening"
If J="od", medications are added to either "Morning" if morning slot has <5 names already, or "Evening" if morning slot has >= 5 names.
The values are added to the cell for subsequent medications, not replacing the previous entry.
I apologise for the long-winded explanation. Thank you very much for any advice!

Related Links

App Engine Flexible to Cloud Storage Network Unreachable
Google Cloud Search API - is there a limit to number of document puts per second?
Stackdriver Analysis report unavailable error
Dependencies not installing from lib directory in google app engine
what is uri / server error
GAE : What is the preferred way of ensuring an outside task really finishes?
WebRTC app.yaml file does not exists
collection_name for ndb.KeyProperty
Is there any way to access Firebase from an App Engine servlet without using manual scaling or the flexible environment?
Why does Google Cloud SQL (using JDBC) take longer to insert records from Google App Engine than from my personal computer?
How do I track Google account logins on python GAE?
Delete and Rename events in google drive
App Engine - How to Clear Cookie
How do I get the path to the Cloud SDK directory using the gcloud command?
Cannot reach Endpoint method with cURL
Find the total instance hours in my Google Apps Engine

Categories

HOME
shell
google-app-engine
cheerio
c++11
codenvy
telegram
mysql-workbench
yahoo-finance
battery
carousel
rom
tail
jax-ws
angularfire2
vert.x
distribution
startup
activecollab
x-cart
ipmitool
eip
libusb
event-sourcing
standards
chargify
html5-appcache
dapper-extensions
windows-server-2003
surveymonkey
alm
utorrent
fstream
login-script
getpixel
fiware-cygnus
sharepoint-workflow
openerp-7
jvmti
azure-arm
android-ibeacon
sharp-snmp
procfile
httr
automapper-5
gitlist
activeperl
amq
appdomain
backbone-collections
jqchart
libjpeg
django-1.10
branch-prediction
winusb
preprocessor
segment-io
jboss-tools
lua-telegram-bot
angular-ui-typeahead
aurora
html-to-pdf
findfirst
user-management
crouton-os
dynatree
themoviedb-api
avisynth
poppler
.bash-profile
zscript
matlab-deployment
node-serialport
umlgraph
java-security
delayed-execution
sql-scripts
appserver
insight.database
create.js
mintty
gnumeric
buffering
spring-remoting
extjs2
qscrollarea
mysql-error-1044
embedded-fonts
inputmismatchexception
mongohq
process-explorer
composite-component
wp7test
robotlegs
onmousemove
pyunit
jsr286
google-maps-mobile
luabind
nhprof
dot-emacs
web-garden
dsoframer
appliance

Resources

Encrypt Message