If cell 1 and 2 contain x and y then reference z

kujo21

New Member
Joined
May 26, 2015
Messages
2
Working on a travel spreadsheet in Office 2010

1st tab that I will insert State and City, that will need to auto fill another cell on that row with daily allowance * number of days cell (also on in that row)

2nd tab has reference information in each ROW.

Oh yeah and in the city and state I'd like to make those drop down menus, or start auto filling in when typing.

Suggestions? Thanks!!
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Welcome Kujo,

OK for your first question: On the first tab, you want a city and state column with dropdowns showing a list of the city and state values from the 2nd tab. Is that correct? Is that what you want to know how to create?

Luke
 
Upvote 0
Thanks Luke for helping. On the first tab I have to fill out for each person where they are going. When I do that, I want it to search the 2nd tab for the daily allowance of that location and input it to another cell on the first tab, multiply the number of days in a different cell on the first tab.

For example I'm trying to find for XYZ

Tab 1 [TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Name [/TD]
[TD]City[/TD]
[TD]State[/TD]
[TD]# Days[/TD]
[TD]Cost[/TD]
[/TR]
[TR]
[TD]Joe Smith[/TD]
[TD]Syracuse[/TD]
[TD]New York[/TD]
[TD]8[/TD]
[TD]XYZ[/TD]
[/TR]
</tbody>[/TABLE]


Tab 2
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]City[/TD]
[TD]State[/TD]
[TD]Allowance/Day[/TD]
[/TR]
[TR]
[TD]Syracuse[/TD]
[TD]New York[/TD]
[TD]$87[/TD]
[/TR]
</tbody>[/TABLE]


2nd question was more about when I start typing the City and State in to tab 1, I'm curious if I can get it to auto-fill. Its got 37000 locations and I figure it would be a nice to save time.
 
Upvote 0
For Cost you can vlookup(B2,'Tab 2'!$A$1:$C$999,3,FALSE)*D2

To autofill:
  1. Click Advanced, and then under Editing options, clear or select the Enable AutoComplete for cell values check box to turn automatic completion of cell values on or off
 
Upvote 0

Forum statistics

Threads
1,223,952
Messages
6,175,594
Members
452,656
Latest member
earth

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