Formula to get data

biggercrap

New Member
Joined
Dec 8, 2006
Messages
48
How do I get the group column in spreadsheet 'group' by using date column
values that falls b/w start and end column in spreadsheet 'data' ???


Spreadsheet 'group'
date group
13.jun.09 AAA <13.jun.09 is b/w 01.feb.09 & 22.jan.10 >
03.nov.10 BBB <03.nov.09 is b/w 23.jan.09 & 13.feb.10 >



Spreadsheet 'data'
start end groupname
01.feb.09 22.jan.10 AAA
23.jan.09 13.feb.10 BBB
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
How do I get the group column in spreadsheet 'group' by using date column
values that falls b/w start and end column in spreadsheet 'data' ???

Spreadsheet 'group'
date group
13.jun.09 AAA < 13.jun.09 is b/w 01.feb.09 & 22.jan.10 >
03.nov.10 BBB < 03.nov.09 is b/w 23.jan.09 & 13.feb.10 >



Spreadsheet 'data'
start end groupname
01.feb.09 22.jan.10 AAA
23.jan.09 13.feb.10 BBB

What i mean is that how to get the value under group by using the date.

I.e check which range of date that 13.jun.09 fall in at spreadsheet 'data'
<b/w 01.feb.09 & 22.jan.10>, group column will reflect AAA in spreadsheet group

for 03.nov.10 < b/w 23.jan.09 & 13.feb.10 >
 
Upvote 0
But your dates don't tie up

Do you mean this?

Excel Workbook
ABCDEF
1Start dateEnd DateGroup*DateGroup
201/01/200922/01/2010AAA*13/06/2009AAA
323/01/201013/02/2011BBB***
Sheet1


Lee

I.e formula to check which range of date that 13.jun.09 fall in range from spreadsheet 'data'
for 13.jun.09 ( Date is b/w 01.feb.09 and 22.jan.10 ) , spreadsheet group value of B2 = AAA

for 03.nov.10 ( Date is b/w 23.jan.09 and 13.feb.11 ), spreadsheet group B3 = BBB

Both Data and Group are in different spreadsheet

********************************************
'Group' spreadsheet
A B
1 DATE GROUP
2 13.jun.09
3 03.nov.10

*********************************************
'Data' spreadsheet
A B C
1 START END GROUPNAME
2 01.feb.09 22.jan.10 AAA
3 23.jan.10 13.feb.11 BBB


I couldnt post in table forms so, the abc/123 represent the excel tables
 
Last edited:
Upvote 0
Yeah, you don't really need column B (End Date) in your lookup table either. It seems superfluous. Unless you're using that column for something else......?
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,208
Members
448,554
Latest member
Gleisner2

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