lookup help

bflan0524

Board Regular
Joined
Oct 7, 2016
Messages
192
Office Version
  1. 2010
hello i have a data sheet below

ViewersLast ViewViews
Flanagan, Brian1 week53
Doe, John4 weeks100

i want to create a new sheet like below, where i can reference the first sheet and bring in the data to look as below, can somebody help with that on a formula

Column AColumn BColumn CColumn DColumn E
Name1 Week2 Weeks3 Weeks4+
Doe JohnNNNY
Flanagan, BrianYNNN
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Assuming your upper table is in columns K:M and the lower one starts at A1
In cell B2 (showing N for 1 week for Doe, John - names have to match exactly):
Excel Formula:
=IF(--(SUBSTITUTE(SUBSTITUTE(VLOOKUP($A2,$K$1:$L$13,2,0)," week",""),"s",""))=COLUMNS($B$1:B$1),"Y","N")
copy this right and in E2 make a minor change to allow for 4+ not only 4:
Excel Formula:
=IF(--(SUBSTITUTE(SUBSTITUTE(VLOOKUP($A2,$K$1:$L$13,2,0)," week",""),"s",""))>=4,"Y","N")
 
Upvote 0
You could also load it into powerquery or pivot table and just pivot column on Last View
 
Upvote 0
am i using the top or the bottom one, i tried the bottom one and it wasnt working
Assuming your upper table is in columns K:M and the lower one starts at A1
In cell B2 (showing N for 1 week for Doe, John - names have to match exactly):
Excel Formula:
=IF(--(SUBSTITUTE(SUBSTITUTE(VLOOKUP($A2,$K$1:$L$13,2,0)," week",""),"s",""))=COLUMNS($B$1:B$1),"Y","N")
copy this right and in E2 make a minor change to allow for 4+ not only 4:
Excel Formula:
=IF(--(SUBSTITUTE(SUBSTITUTE(VLOOKUP($A2,$K$1:$L$13,2,0)," week",""),"s",""))>=4,"Y","N")
 
Upvote 0
The bottom one is only for 4+ column.
 
Upvote 0

Forum statistics

Threads
1,215,139
Messages
6,123,262
Members
449,093
Latest member
Vincent Khandagale

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