It depends on what kind of absorption spectra you have, ie transmission mode or ATR mode.
For transmission spectra you can use Tauc plot.
Since you mention powder sample, You might used ATR or reflection method, so you need to use Kubelka-Munk function to obtain band gap. The Kubelka-Munk function, F(R), allows the optical absorbance of a sample to be approximated from its reflectance: F(R) = (1-R)^2/2R. You can find many papers on Kubelka-Munk function.