The Marchenko method is a data-driven way that makes it possible to calculate Green’s functions from virtual points in the subsurface using the reflection data at the surface and requiring only a macro velocity model. This method requires collocated sources and receivers. However, in practice, irregular sampling of sources or receivers will cause gaps and distortions in the obtained focusing functions and Green’s functions. To solve this problem, this paper proposes to integrate a sparse inversion into the iterative Marchenko scheme. Specifically, we add sparsity constraints to the Marchenko equations and apply the sparse inversion during the iterative process. To reduce the strict requirements on acquisition geometries, our work deals with the situation in which the sources are subsampled where the integrations are carried out over the receivers, while the existing point spread function method solves the situation where the receivers are subsampled. We make a step to handle both situations at the same time by integrating this method with our work because of the same iterative framework. Our new method is applied to a two-dimensional numerical example with irregularly sampled data. The result shows that it can effectively fill gaps in the obtained focusing functions and Green’s functions in the Marchenko method.