vLookup with check boxes?

SilkyNick

New Member
Joined
Mar 7, 2014
Messages
11
Well to start off I am using Excel 2007, I am currently trying to figure out how exactly to make my idea work...I was given the general idea a bit ago and at first in my mind it sounded like a wonderful idea, but now I can't seem to get a hold of that person to ask them any questions on how I could actually do so.I have an invoice template set up across two sheets (Invoice & Price Table), on the first page is the actual invoice that needs to be filled in. I have made an userform for being able to fill in the invoice number,what type of test was done, and also things like hours and miles (an their costs per also)

. Now I am wanting to try and get it to where I can have the form look at the type of test cell and from there select the price located on the second sheet that is appropriate to that type, the thing is, there are two possible prices that it can be depending on if the company wanted the results "rush". I was suggested that I could use a check box on the invoice to indicate in the spreadsheet that it is a rush, and somehow link that in with a vlookup to be able to get what I wanted, but I'm not sure exactly how I would go about doing that.

I will upload what I am working with so you can get an idea if you'd like. No I'm not expecting you to do it, but if you do, please let me know the steps you took to get there since I really do in the end want to be able to do this later for similar projects.
 
Last edited:

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Depending on the setup of your sheet, you can use checkboxes. I would suggest using the Linked To Cell option, and then use the VLOOKUP based on the TRUE/FALSE value. Given more info, I can assist in building the sheet.
 
Upvote 0
Depending on the setup of your sheet, you can use checkboxes. I would suggest using the Linked To Cell option, and then use the VLOOKUP based on the TRUE/FALSE value. Given more info, I can assist in building the sheet.










Since I can't upload the file anywhere, here are some screen shots of how it is set up. (Please note the button inside invoice is there temporarily)

Also the blank part above term is where my company information will go so I can't do much to that area

Thank you for the quick reply also
 
Last edited:
Upvote 0
Here is how I have it set up. As a test, I added the Type Analysis set into a Data Validation List. Next to it, I have added a User Form check box, set the Format Control Cell Link to the next cell. When the List drop box changes, it will do a vlookup to the Analysis Price. When the check box is selected, it Changed the Linked cell to True. In the Analysis Charges, it will update when it shows True. Here is the formula that I used.

=IF(C4=TRUE,(VLOOKUP(A4,Sheet2!B2:E30,4,FALSE)),(VLOOKUP(A4,Sheet2!B2:E30,2,FALSE)))

Let me know if this makes sense. If not, I can add some screenshots.
 
Upvote 0
Here is how I have it set up. As a test, I added the Type Analysis set into a Data Validation List. Next to it, I have added a User Form check box, set the Format Control Cell Link to the next cell. When the List drop box changes, it will do a vlookup to the Analysis Price. When the check box is selected, it Changed the Linked cell to True. In the Analysis Charges, it will update when it shows True. Here is the formula that I used.

=IF(C4=TRUE,(VLOOKUP(A4,Sheet2!B2:E30,4,FALSE)),(VLOOKUP(A4,Sheet2!B2:E30,2,FALSE)))

Let me know if this makes sense. If not, I can add some screenshots.

That actually does make pretty good sense so I am going to attempt to follow it first, but if you want you can go ahead and post the screenshots and I can come back for reference.
 
Last edited:
Upvote 0
I will see if I can post pictures. Since they have sharing sites blocked at work, I may not be able to do so.
 
Upvote 0
It's ok if not I understand that issue myself, but I do have one question I would like to ask. Does my check box need to come before Type Analysis, or will that matter as long as I set it to ask for that cell true/false before the vlookups?
 
Upvote 0
It really does not matter where the check box or the link cell are located. You just need to reference the linked box (TRUE/FALSE) in the vlookup. In my example, C4 is the linked cell. You can have the check box in A1 and the linked cell in AA75, just as long as you point to AA75 for the TRUE check in the formula.
 
Upvote 0
Ah ok, I have a slight issue, I have changed out the formula (Currently =IF(Sheet2!B26=TRUE,(VLOOKUP(D25,'Price Table'!B2:E65,4,FALSE)),(VLOOKUP(D25,'Price Table'!B2:E67,2,FALSE))) ), for some reason when I check the check box however, it takes the formula out of the Analysis Charges section. Is there a way to prevent that so I could freely switch between regular/rush without the need for replacing the code

I also moved my type analysis to D25, as the other space wouldn't fit the longer named processes.
 
Upvote 0
When you say that is takes the formula out of the Analysis Charges section, do you mean that it deletes the formula? If so, is the formula in the linked cell box? By that I mean is Sheet2!B26 the location of the formula?
 
Upvote 0

Forum statistics

Threads
1,224,722
Messages
6,180,559
Members
452,987
Latest member
mrfitness_79

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