Hi
I have a workbook with two sheets. To the second sheet (sheet2) I have 20 people in, each person has 3 columns salary, income, expenses.
On Sheet 1, I want to be able to enter a start date (A2) and an end date (A3). Then I want a VBA to search each person and sum the incomes between these two dates and show me this sum on sheet1 on a specified cell (A3).
I try another way with the function countifs but I have to change the number of line each every time.
I have already made a code that copies the last cell, so I can’t select the entire column.
I have a workbook with two sheets. To the second sheet (sheet2) I have 20 people in, each person has 3 columns salary, income, expenses.
On Sheet 1, I want to be able to enter a start date (A2) and an end date (A3). Then I want a VBA to search each person and sum the incomes between these two dates and show me this sum on sheet1 on a specified cell (A3).
I try another way with the function countifs but I have to change the number of line each every time.
I have already made a code that copies the last cell, so I can’t select the entire column.