16.2k views
5 votes
In column G, Brett wants to calculate the number of days the invoice is overdue. If the age of the invoice is greater than 30 days, it is overdue. Calculate the days overdue as follows: In cell G6, insert a formula using the IF function that tests whether the age of the invoice (cell F6) is greater than 30. b. If the age of the invoice is greater than 30, subtract the due date (cell E6) from the current date (cell B3). If the age of the invoice is less than or equal to 30, display o to show that the invoice is not overdue. d. Use an absolute reference to cell B3 in the formula. Use the Fill Handle to fill the range G7:15 with the formula in cell G6, filling the range without formatting c.

User Himen
by
8.0k points

1 Answer

6 votes

Final answer:

To calculate days overdue in Excel, use the formula =IF(F6>30, B3-E6, "0") in cell G6 and fill down to G7:G15. The formula checks if the invoice age is over 30 days and calculates the difference between the current date and due date, otherwise displays 0.

Step-by-step explanation:

In cell G6, to calculate the number of days an invoice is overdue in Microsoft Excel, you can use an IF function combined with absolute cell referencing. Write the following formula in cell G6:

=IF(F6>30, B3-E6, "0")

This formula checks if the age of the invoice in cell F6 is greater than 30 days. If it is, it calculates the difference between the current date in cell B3 and the due date in cell E6. Otherwise, it displays 0, indicating that the invoice is not overdue. Make sure to use an absolute reference for cell B3 (e.g., $B$3) to keep this cell constant when using the Fill Handle. After entering the formula in G6, drag the cell's corner down to fill the cells G7:G15 with this formula without altering the reference to cell B3.

User Zainul Abideen
by
8.6k points