Need formula to lookup last posted balance using 2 criteria

Kendoaka

New Member
Joined
Jul 9, 2022
Messages
3
Office Version
  1. 2021
Platform
  1. Windows
I have a formula =VLOOKUP(B1,Table1,2,TRUE) but would like to add another criteria to this formula, criteria of "Card Type".

Would like formula to return last posted balance using criteria 1 (today's date) and criteria 2 (card type).

Current Date3/2/2023
Card 1501.23
DateCard TypeBalance
2/15/2023Card 1$901.66
2/16/2023Card 2$1,004.45
2/20/2023Card 1$850.65
2/22/2023Card 1$320.33
2/22/2023Card 2$501.23
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
A
B
C
1
Current Date
20/02/2023
2
Card 1
850.65
3
4
5
Date
Card Type
Balance
6
15/02/2023
Card 1
901.66
7
16/02/2023
Card 2
1004.45
8
20/02/2023
Card 1
850.65
9
22/02/2023
Card 1
320.33
10
22/02/2023
Card 2
501.23


A
B
2
Card 1
=SUMIFS($C$5:$C$100,$B$5:$B$100,$A$2,A5:A100,$B$1)
 
Upvote 0

Forum statistics

Threads
1,221,418
Messages
6,159,790
Members
451,589
Latest member
Harold14

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