No spark

Got an 07 Rancher, been having a few issues with but it ran, than the other day it died, no spark, battery is good, swapped starter solenoid, checking coil with multi meter now, at 200k ohm range getting 18. that’s tab to spark plug connector, only at the 200 range am I getting a reading from tab to tab, not sure if coil is bad, but I also noticed a buzz noise when trying to start it come from a part with a wiring harness plugged into it and when I unplug this the temporary buzz goes away. otherwise when trying to start I get a click and buzz, no spark. before this it was starting harder lately. any help would be appreciated.