[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
Solved

# using drop downs to calculate pay rate

Posted on 2012-08-20
Medium Priority
284 Views
Hi guys,

I have an excel spreadsheet that I'm using to keep track of employee projects.

I'm using drop down lists to select the employee. I want to be able to determine the pay rate of the employee and if no employee is select, show a blank value.

example:

IF  D3 = BLANK then show BLANK, if D3 = "John Doe" then 25, if D3 = "Bob Smith" then 28

i Googled, but couldn't find anything close to what I'm doing.
0
1 Comment

LVL 39

Accepted Solution

nutsch earned 2000 total points
ID: 38312481
put a list on sheet1 with in column A your employee names, in column B your rate.

now, on the page where you have your drop down, put this formula where you want the rate to be

=iferror(vlookup(d3,sheet1!\$A\$1:\$B\$100,2,0),0)
for excel 2007-2010

or
=if(isna(vlookup(d3,sheet1!\$A\$1:\$B\$100,2,0),0,vlookup(d3,sheet1!\$A\$1:\$B\$100,2,0))

In addition, you can also use that list as the source for your dropdown.

Thomas
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
###### Suggested Courses
Course of the Month19 days, 3 hours left to enroll