![]() |
|
|
|
#1
|
|||
|
|||
|
Create an additional sheet e.g. RequestTypes with columns RequestType, Target.
Define the created table as Table (e.g. tRT), or define a dynamical named range (e.g. nRT) which includes datarange of created table. As a bonus, you can define the data column of RequestType in tRT or 1st column of nRT as named range, and use this named range in your original table as Data Validation List source to select TypeOfRequest values. Your formula OnTarget formula will be in case you used defined Table: Code:
=IF(OR($A2="",$B2=""),"",(SUMIF(tRT[Target],tRT[RequestType],$A2)>=$B2)) Code:
=IF(OR($A2="",$B2=""),"",(VLOOKUP($A2,nRT,2,0)>=$B2)) There is no limitations for target values - all requests may have same target, or every request type can have different target. It is up to you how you define them in RegustType sheet. |
|
#2
|
|||
|
|||
|
Thank you so much for the quick response. This is way beyond anything I know but gave it a go and have attached the results. I think it's nearly there.
Instead of returning FALSE or TRUE, can it return Yes or No? Also, think I may have done something wrong as the drop down list also has my target values?? Once last thing, is this working out network days as we only work Mon-Fri? I also need to factor in the public holidays so they are not counted. So sorry for list of queries but hope you can help. Not sure it's relevant but I'm using Excel 2016. Thanks. Lynn |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
vba to replace old value by target value search almost key words matching
|
manilara | Excel Programming | 6 | 11-19-2015 08:19 PM |
| Insert space before and after target text | Marrick13 | Word VBA | 6 | 06-20-2014 07:46 AM |
Envelope Printing is off target - need help please!
|
mylan | Word | 2 | 10-24-2012 12:24 PM |
| Send OFT when target email arrives | RandWald | Outlook | 0 | 11-11-2011 10:52 AM |
Target line on a excel graph
|
leroytrolley | Excel | 1 | 01-16-2009 04:19 PM |