V Lookup Help

Edgie

Board Regular
Joined
Aug 5, 2011
Messages
102
Hi,

I have an issue with a Vlookup - i think it's complicated

Currently i have data in this form:

Task (which is a drop down) Description (which vlookups from the task selection) Activity (either hi or low) and then proposed time.

The data is in a table in another tab,

Basically if you select the task the description populates using a vlookup, then the activity is either high or low, i want to then populate the proposed time by looking at the task and then the activity.

I could do an if statement but it would take ages to write as there are 20 different tasks and every proposed time is different, is there a way to do it?

I have googled it and seen vlookup with a match or a nested if but not sure...

Any help would be great
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Since I can't see your data, this is just a guess.

Can you put your tasks with their low and high activity times in a table, as shown in F1:H4? If so, then you can use a VLOOKUP, as I have in Column D. Column D is formatted with a Time format.

Sheet1

<TABLE style="BACKGROUND-COLOR: #ffffff; PADDING-LEFT: 2pt; PADDING-RIGHT: 2pt; FONT-FAMILY: Calibri,Arial; FONT-SIZE: 11pt" border=1 cellSpacing=0 cellPadding=0><COLGROUP><COL style="WIDTH: 30px; FONT-WEIGHT: bold"><COL style="WIDTH: 64px"><COL style="WIDTH: 78px"><COL style="WIDTH: 64px"><COL style="WIDTH: 101px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"></COLGROUP><TBODY><TR style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt; FONT-WEIGHT: bold"><TD> </TD><TD>A</TD><TD>B</TD><TD>C</TD><TD>D</TD><TD>E</TD><TD>F</TD><TD>G</TD><TD>H</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">1</TD><TD>Task</TD><TD>Description</TD><TD>Activity</TD><TD>Proposed Time</TD><TD> </TD><TD>Task</TD><TD>Low</TD><TD>High</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">2</TD><TD>Task1</TD><TD> </TD><TD>Low</TD><TD style="TEXT-ALIGN: right">0:10</TD><TD> </TD><TD>Task1</TD><TD style="TEXT-ALIGN: right">0:10</TD><TD style="TEXT-ALIGN: right">0:20</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">3</TD><TD>Task2</TD><TD> </TD><TD>High</TD><TD style="TEXT-ALIGN: right">0:45</TD><TD> </TD><TD>Task2</TD><TD style="TEXT-ALIGN: right">0:30</TD><TD style="TEXT-ALIGN: right">0:45</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">4</TD><TD>Task3</TD><TD> </TD><TD>Low</TD><TD style="TEXT-ALIGN: right">0:40</TD><TD> </TD><TD>Task3</TD><TD style="TEXT-ALIGN: right">0:40</TD><TD style="TEXT-ALIGN: right">1:15</TD></TR></TBODY></TABLE>
<TABLE style="BORDER-BOTTOM-STYLE: groove; BORDER-BOTTOM-COLOR: #00ff00; BORDER-RIGHT-STYLE: groove; BACKGROUND-COLOR: #fffcf9; BORDER-TOP-COLOR: #00ff00; FONT-FAMILY: Arial; BORDER-TOP-STYLE: groove; COLOR: #000000; BORDER-RIGHT-COLOR: #00ff00; FONT-SIZE: 10pt; BORDER-LEFT-STYLE: groove; BORDER-LEFT-COLOR: #00ff00"><TBODY><TR><TD>Spreadsheet Formulas</TD></TR><TR><TD><TABLE style="FONT-FAMILY: Arial; FONT-SIZE: 9pt" border=1 cellSpacing=0 cellPadding=2><TBODY><TR style="BACKGROUND-COLOR: #cacaca; FONT-SIZE: 10pt"><TD>Cell</TD><TD>Formula</TD></TR><TR><TD>D2</TD><TD>=VLOOKUP(A2,$F$2:$H$4,IF(C2="Low",2,3),0)</TD></TR><TR><TD>D3</TD><TD>=VLOOKUP(A3,$F$2:$H$4,IF(C3="Low",2,3),0)</TD></TR><TR><TD>D4</TD><TD>=VLOOKUP(A4,$F$2:$H$4,IF(C4="Low",2,3),0)</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>

Excel tables to the web >> http://www.excel-jeanie-html.de/index.php?f=1" target="_blank"> Excel Jeanie HTML 4
 
Upvote 0
Thanks for the quick response....how do i put that table in the response so i can show you my data table
 
Upvote 0
hi,

Is it possible to do this without the Task Data high low times in the same table, so i can put that in another sheet so it isnt showing? Like i did with the description, it's all in the background??
 
Upvote 0
Say if i named the f2:h4 "Data" and put it in another tab could that work?

I'm having problems with the forumla...

d2=VLOOKUP(A2,Data,IF(C2="Low",2,3),0)

It keeps pulling an answer of 0??? Any ideas please?

Thanks for your help
 
Upvote 0
=VLOOKUP(A3,Sheet2!$F$2:$H$4,IF(C3="Low",2,3),0)
or using a Defined Range
=VLOOKUP(A2,TaskData,IF(C2="Low",2,3),0)
Taskdata refers to Sheet2 Range $F$:$H$4

To create a post with a table look at the last sentence in Mike's post.:)

Rob
 
Upvote 0

Forum statistics

Threads
1,224,547
Messages
6,179,436
Members
452,915
Latest member
hannnahheileen

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