Get Value based on date criteria

Status
Not open for further replies.

simply_shailesh

New Member
Joined
Nov 1, 2015
Messages
6
I have 2 tablets 1st is reference and second output required

1st table is like

Date Product Price
1-1-20 ProductA 1000
1-1-20 ProductB 1100
4-1-20 ProductA 1010
6-1-20 ProductA 990
Contains 25k rows

Second Table

Date Product Price Available
1-1-20 ProductA 1000
3-1-20 ProductB 1100
4-1-20 ProductA 1010
5-1-20 ProductA 1010
7-1-20 ProductA 990
Contain 60k row

I need arrayformula for google sheets....

Kindly help...
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hi

Presumably you want to test if the date and product on sheet2 has a match on sheet1, and if so it's available?

Book1
ABCDEFGHI
1DateProductPriceDateProductPriceAvailable
201/01/2020ProductA100001/01/2020ProductA1000Yes
301/01/2020ProductB110003/01/2020ProductB1100No
404/01/2020ProductA101004/01/2020ProductA1010Yes
506/01/2020ProductA99005/01/2020ProductA1010No
607/01/2020ProductA990No
7
Sheet1
Cell Formulas
RangeFormula
H2:H6H2=IF(COUNTIFS(A:A,E2,B:B,F2),"Yes","No")
 
Upvote 0
Hi

Presumably you want to test if the date and product on sheet2 has a match on sheet1, and if so it's available?

Book1
ABCDEFGHI
1DateProductPriceDateProductPriceAvailable
201/01/2020ProductA100001/01/2020ProductA1000Yes
301/01/2020ProductB110003/01/2020ProductB1100No
404/01/2020ProductA101004/01/2020ProductA1010Yes
506/01/2020ProductA99005/01/2020ProductA1010No
607/01/2020ProductA990No
7
Sheet1
Cell Formulas
RangeFormula
H2:H6H2=IF(COUNTIFS(A:A,E2,B:B,F2),"Yes","No")
All are available so no yes or no
 
Upvote 0
You aren't being clear, what is the expected result from your example?
 
Upvote 0
I have 2 tablets 1st is reference and second output required

1st table is like

Date Product Price
1-1-20 ProductA 1000
1-1-20 ProductB 1100
4-1-20 ProductA 1010
6-1-20 ProductA 990
Contains 25k rows

Second Table

Date Product Price Available
1-1-20 ProductA 1000
3-1-20 ProductB 1100
4-1-20 ProductA 1010
5-1-20 ProductA 1010
7-1-20 ProductA 990
Contain 60k row

I need arrayformula for google sheets....

Kindly help...
*Price-Available can be read as Price_to_be
 
Upvote 0
So more like this?

Book1
ABCDEFGH
1DateProductPriceDateProductPrice-Available
201/01/2020ProductA100001/01/2020ProductA1000
301/01/2020ProductB110003/01/2020ProductB1100
404/01/2020ProductA101004/01/2020ProductA1010
506/01/2020ProductA99005/01/2020ProductA1010
607/01/2020ProductA990
7
Sheet1
Cell Formulas
RangeFormula
G2:G6G2=INDEX(FILTER($C$2:$C$5,$B$2:$B$5=F2), MATCH(E2,FILTER($A$2:$A$5,$B$2:$B$5=F2),1))
 
Upvote 0
Solution
You aren't being clear, what is the expected result from your example?
Want to fill the price available column of table to from table one depend on the product and date

Date Product. Price Available
1-1-20 ProductA 1000
3-1-20 ProductB 1100
4-1-20 ProductA 1010
5-1-20 ProductA 1010
7-1-20 ProductA 990


This is was I am looking for dear....
 
Upvote 0
Scenario 2 -
In this I have start date and end date

I have 2 tables 1st is reference and second output required

1st table is like

StartDate End Date Product Price
1-1-20 3-1-2020 ProductA 1000
1-1-20 31-1-2020 ProductB 1100
4-1-20 5-1-2020 ProductA 1010
6-1-20 20-1-2020 ProductA 990
Contains 25k rows

Second Table

Date Product Price Available
1-1-20 ProductA 1000
3-1-20 ProductB 1100
4-1-20 ProductA 1010
5-1-20 ProductA 1010
7-1-20 ProductA 990
Contain 60k row

Currently i am doing this with index, match with maxifs. But i need arrayformula for google sheets....

Kindly help...
 
Upvote 0
Duplicate to: Sum If between start date and end date

In future,
  • please do not post the same question multiple times. Per Forum Rules (#12), posts of a duplicate nature will be locked or deleted.
  • post Google Sheets questions in the forum marked for such:

    1639284635760.png

In relation to your question here, I have closed this thread so please continue in the linked thread.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,223,986
Messages
6,175,793
Members
452,670
Latest member
nogarth

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