how I pass a variable to selector

how I pass a variable to selector

I'm using 
and I wani to pass a variable at selector

$('.cell'+i).each(function(){
        var get_val = $(this).val()
        sum1 += parseFloat(get_val);