I am so sorry..was in hurry to post it.. What I need to get the data on the second page when I input the category number . I tried to do it by Sumifs/Index and match but failed to do it. Could you please help me to fix this.