[2] He occupied several different academic positions at the University of Edinburgh and the Royal Dick Veterinary College.
[6] He played a leading role in organising and diversifying the botanical garden of the University of Pennsylvania.
On retiral he returned to Britain and died in Lancaster in northern England on 16 September 1943.
He also wrote many other works including The evolution and distribution of flowering plants (Apocynaceae, Asclepiadaceae) (1933), The evolution and distribution of fishes (1923), Fishes the source of petroleum (1923), and The quantity and sources of our petroleum supplies (1931).
Macfarlane revised the tropical pitcher plant family in his 1908 monograph, "Nepenthaceae".