Formula help vlookup and possibly if

scareycarey

New Member
Joined
Apr 1, 2016
Messages
10
Hi
I looking for some help solving this formula if someone could help I would be grateful

I have used this but does not work =IF($B3=$D$2,VLOOKUP($B3,B:C,2,),FALSE) I just keep getting the same name

The below is an example of what I am looking for
if there is a 1 in table 1 column B (week) then put that name in sheet 1 column E ( there may be multiple "1"s in table 1 with different names

TABLE 1
A B C
1 Week NAME
2
3 01 AB
4 21 AC
6 18 AD
7 13 AE
8 01 AF
9 19 AG
10 27 AH
11 01 AI
12 05 AJ
13 31 AK


Sheet 1
D E
1 1 AB
2 AF
3 AI
4


Kind Regards

Richard
smile.gif
Info.docx
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Row\Col
A​
B​
C​
D​
1​
WeekNAMEweek
2​
1​
3​
1​
ABcount
4​
21​
AC
3​
5​
18​
ADLIST
6​
13​
AEAB
7​
1​
AFAF
8​
19​
AGAI
9​
27​
AH
10​
1​
AI
11​
5​
AJ
12​
31​
AK

In D4 just enter:
Rich (BB code):
=COUNTIFS($A:$A,D$2)

In D6 control+shift+enter, not just enter, and copy down:
Rich (BB code):
=IF(ROWS($D$6:D6)<=D$4,INDEX($B$3:$B$12,SMALL(IF($A$3:$A$12=D$2,
    ROW($B$3:$B$12)-ROW($B$3)+1),ROWS($D$6:D6))),"")
 
Upvote 0
Hi
I cannot seem to get this to work any other ideas please

Any other ideas? The information you provide is not sufficient to go on, but perhaps you did not apply control+shift+enter properly:

Control+shift+enter >> Press down the shift and the control keys at the same time while you hit the enter key. If done properly, Excel itself puts a pair of { and } around the formula.
 
Upvote 0
I have managed to sort now and all works perfectly. Thank you very much for your help Aladin much appreciated
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,267
Members
449,075
Latest member
staticfluids

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