Helper Table Written as a Range?

MattDW

Board Regular
Joined
Mar 7, 2007
Messages
66
Would anyone out there be able to help me to figure out how to take the helper table I created and express this, using a formula, in the format seen below?

Helper Table: http://staffweb.psdschools.org/mway/excelquestion3/

The data in columns L, M and N are the start of range values, end of range values and the single entity values, as seen in the expression below.

Desired Output:

select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.Resour ceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.NetbiosName >= "PRE12344" and SMS_R_System.NetbiosName <= "PRE12349" or SMS_R_System.NetbiosName >= "PRE23465" and SMS_R_System.NetbiosName <= "PRE23466" or SMS_R_System.NetbiosName >= "PRE34563" and SMS_R_System.NetbiosName <= "PRE34567" or SMS_R_System.NetbiosName = "PRE65318" or SMS_R_System.NetbiosName = "PRE65319" or SMS_R_System.NetbiosName >= "PRE65321" and SMS_R_System.NetbiosName <= "PRE65322" or SMS_R_System.NetbiosName >= "PRE65324" and SMS_R_System.NetbiosName <= "PRE65326" or SMS_R_System.NetbiosName = "PRE16354" or SMS_R_System.NetbiosName = "PRE23468" or SMS_R_System.NetbiosName = "PRE23543" or SMS_R_System.NetbiosName = "PRE76236" or SMS_R_System.NetbiosName = "PRE94323"

Thanks much!

Matt
 

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.

Forum statistics

Threads
1,223,243
Messages
6,170,964
Members
452,371
Latest member
Frana

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