Thank You very much anhn your idea works for me
it gives me perfect values whatever i need
you are great.............

Thanks again..........

Thanks to all for your reply.