Formula needed to Lookup Deal criteria

MarkCBB

Active Member
Joined
Apr 12, 2010
Messages
497
Hi there formula Pros,

I think I finally have a challenge worthy of the formula Pros, (I Think)

I have a database of outlets that have certain criteria, I.e. Channel, Rep type, as well as date of activation.

Here is the layout of the Outlet database:
|Store name | Channel | Rep type | Date of Activation |

I also have a deal sheet on another worksheet that have the same criteria, expect the deal sheet has a start date and an end date.
From the Outlet database sheet, based on the criteria I need to find the relevant deal.

i.e. is the outlet the same channel and same rep type, and is the date of activation in-between the start and end date of the relevant deal, and then assign the correct value of deal.

Here is the layout of the Deal sheet:
|Deal name | Channel | Rep type | Start date | End Date | Value of deal |

There is a lot more logic to this, but If I see how this bit is done, I should be able to figure out the rest.

This seems really simple to me, but I can’t seem to get the date range working,
This is how I tried to approach it; I inserted helper columns into each database with a concatenation of Channel and rep Type, and then used IF logic against the dates, but no luck.


let me know if you need any more info.

Regards,
Mark Blackburn
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi there formula Pros,

I think I finally have a challenge worthy of the formula Pros, (I Think)

I have a database of outlets that have certain criteria, I.e. Channel, Rep type, as well as date of activation.

Here is the layout of the Outlet database:
|Store name | Channel | Rep type | Date of Activation |

I also have a deal sheet on another worksheet that have the same criteria, expect the deal sheet has a start date and an end date.
From the Outlet database sheet, based on the criteria I need to find the relevant deal.

i.e. is the outlet the same channel and same rep type, and is the date of activation in-between the start and end date of the relevant deal, and then assign the correct value of deal.

Here is the layout of the Deal sheet:
|Deal name | Channel | Rep type | Start date | End Date | Value of deal |

There is a lot more logic to this, but If I see how this bit is done, I should be able to figure out the rest.

This seems really simple to me, but I can’t seem to get the date range working,
This is how I tried to approach it; I inserted helper columns into each database with a concatenation of Channel and rep Type, and then used IF logic against the dates, but no luck.


let me know if you need any more info.

Regards,
Mark Blackburn
What version of Excel are you using?
 
Upvote 0
Excel 2010
Ok, try something like this...

Written in "pseudo code".

=SUMIFS(Value of deal range,Deal sheet channel range,some channel,Deal sheet rep type range,some rep type,Deal sheet Start Date range,"<="&Date of Activation,Deal sheet End Date range,">="&Date of Activation)
 
Upvote 0

Forum statistics

Threads
1,224,552
Messages
6,179,484
Members
452,917
Latest member
MrsMSalt

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