Return Date Value If Adjacent Field Is Greater Than 0

torourke17

New Member
Joined
Jan 12, 2018
Messages
12
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I have a table, Column A represents a billing period (11/30/18, 12/31/18, 1/31/19 etc.) and column B represents an amount received for the applicable billing period ($100, 115, 105, etc.).

In a separate cell I want to return a date of the last invoice payment received. So, if the table above shows a value for
(A1)November 30, 2018 (B1)$100
(A2)December 31, 2018 (B2) $115
(A3) January 31, 2019 (B3) $105
(A4) February 28, 2019 (B4) $0
(A5) March 31, 2019 (B5) $0

I'd want the cell B10 to search the table above and tell me that January 31, 2019 was the last billing period I received a payment for. Obviously it has something to do with searching the list and finding a value greater than $0 and pulling that date, but I can't think this through right.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hi,

I added the amount to the last payment shown here:

Excel Workbook
ABC
1DatePayment
211/30/2018$100.00
312/31/2018$115.00
41/31/2019$105.00
52/28/2019$0.00
63/31/2019$0.00
7
8
9Latest PaymentAmount
101/31/2019$105.00
Sheet1
 
Last edited by a moderator:
Upvote 0
Hi,

Another option, normally entered:


Book1
AB
1DatePayment
211/30/2018$100.00
312/31/2018$115.00
41/31/2019$105.00
52/28/2019$0.00
63/31/2019$0.00
7
8
9Last Payment
101/31/2019
Sheet575
Cell Formulas
RangeFormula
B10=LOOKUP(2,1/(B2:B6>0),A2:A6)
 
Upvote 0

Forum statistics

Threads
1,214,987
Messages
6,122,614
Members
449,090
Latest member
vivek chauhan

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