Idahowalker:
Voltage to be measured to a P channel MOSFET drain. I use 2N7000's.
Arduino pin, your choice, to one side of a 330 ohm resistor, other side of 330 ohm resistor to gate of MOFFET. Junction of gate of MOSFET and 330 ohm resistor place a 10k resistor to ground.
Source of MOSFET to top of resistor divider network resistor R1, bottom of R1 connected to R2, Bottom of R2 connected to ground. Junction of R1/R2 to AX pin.
Input of 330 ohm resistor to an Arduino pin to gate on/off voltage to be measured.
I put in delay because I found the AX pin requires a little time for voltage to become stable on the pin. You don't have to shrug.
Arduino pin used, output a 1, to gate on MOSFET, to allow voltage to be measure to be felt at the top of the voltage divider, than measure voltage with an analog read.
You can do an analog read without gating on, an experiment, MOSFET to find that the AX pin will return a 0 volts measured.
By gating off/on the voltage to be measured to the voltage divider, the voltage divider is only drawing battery power when being read, instead of drawing battery power continuously.
The 2N7000 is n-channel.
I get the 0/5 volt switching voltage at the gate, with 330ohm series and 100k bleed to ground.
Those resistors are not really needed, because the gate charge of this fet is very low, and bleed during bootup is not destructive.
Gate can be connected directly to the Arduino switch pin.
With the divider between source and ground, and tap to an analogue input, you can indeed turn the divider OFF.
But you can't turn it ON. At least not fully.
You have described a source follower.
Gate must at least be Vth(gs) higher (~2.5volt) than source, for the fet to turn on.
With 5volt max on the gate, the top of the divider (R1) will never see more than about 2.5volt.
Sorry, but this circuit can not work the way you think it does.
You will have some switched voltage on the analogue pin, but not a representation of what's on the drain of the fet.
This circuit can be modified easilly.
Move R1 (top of divider) to the drain of the mosfet (between 'voltage to measure' and drain).
Then connect source to R2 and analogue pin.
Divider R1,R2 needs recalculating for 1volt at the analogue pin.
And the pin has to be measured with 1.1volt Aref enabled in setup().
Now the mosfet switches the divider on/off not at the top, but in the middle, where they (R1,R2) are joined.
It can now do so, because source is always <=1volt (Vgs > 4volt).
1.1volt Aref is also more suitable (stable/VCC independent) for voltage measurements.
Leo..