Formula to show whether invoice is paid AND/OR approved

danhendo888

Board Regular
Joined
Jul 15, 2019
Messages
142
Office Version
  1. 365
Platform
  1. Windows

Book1
ABC
1InvoiceApprovedPayment Date
2150001/01/19
3150001/01/19
41
51
62501
72501
82
92
103
113
12
13
14InvoiceStatus
151Paid
162Approved
173Not Approved
Sheet3

Hello guys,

I have a sheet with invoice information which can be categorized as either:

- Approved = there is a value in Column B but not in Column C
- Paid = there is a value in Column C
- Not Approved= there are no values in Column C AND Column B

B15:B17 is the output I am looking for.
How would you go about creating a formula to show this output?

Invoice 1:
Rows 4-5 represent the booking of invoice 1
Rows 2-3 show that invoice 1 has been paid since there is a date in Column C

FWIW
If an invoice has been paid, as in the case of invoice 1, I don't need to know whether it has been approved or not.


Thank you :)




 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Hi,

Would there be an instance where, for example, C6 has a date, but C7 does not, what would be the result then?
 
Upvote 0
Then, try this:


Book1
ABC
1InvoiceApprovedPayment Date
215001/1/2019
315001/1/2019
41
51
62501
72501
82
92
103
113
12
13
14InvoiceStatus
151PaidPaid
162ApprovedApproved
173Not ApprovedNot Approved
Sheet691
Cell Formulas
RangeFormula
C15=IF(COUNTIFS(A$2:A$11,A15,B$2:B$11,">0"),IF(COUNTIFS(A$2:A$11,A15,C$2:C$11,">0"),"Paid","Approved"),"Not Approved")


C15 formula copied down, change/adjust cell references/range as needed.
 
Upvote 0
Then, try this:

ABC
1InvoiceApprovedPayment Date
215001/1/2019
315001/1/2019
41
51
62501
72501
82
92
103
113
12
13
14InvoiceStatus
151PaidPaid
162ApprovedApproved
173Not ApprovedNot Approved

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet691

Worksheet Formulas
CellFormula
C15=IF(COUNTIFS(A$2:A$11,A15,B$2:B$11,">0"),IF(COUNTIFS(A$2:A$11,A15,C$2:C$11,">0"),"Paid","Approved"),"Not Approved")

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>



C15 formula copied down, change/adjust cell references/range as needed.


Thank you so much! It works beautifully.
You've made my day :)
 
Upvote 0
You're welcome, welcome to the forum, and thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,251
Members
448,556
Latest member
peterhess2002

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top