Vlookup in 2 sheet in same workbook

handri

Board Regular
Joined
Nov 25, 2017
Messages
88
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
hi

I have 2 sheet in my workbook. 1st sheet is where is my item will be enter(down direction). 2nd sheet (Singe item) is my data bank which collected what are being entered in 1st sheet. Below is my vlookup formula

HTML:
=VLOOKUP(A3,Sheet1!$B$2:C20,2,FALSE)

Problem is when duplicate item(common) being entered in sheet 1, the data bank will not capture in 2nd sheet.

In the meantime, thank you so much for your attention and participation
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
thank mate,

is it anyway to resolve it.

thanks
 
Upvote 0
In B3 of Sheet2 control+shift+enter, copy across, and down:

=IFERROR(INDEX(Sheet1!$C$2:$C$20,SMALL(IF(Sheet1!$B$2:$B$20=$A3,ROW(Sheet1!$C$2:$C$20)-ROW(Sheet1!$C$2)+1),COLUMNS($B3:B3))),"")
 
Upvote 0
Already copy to B3. When i add another duplicate item (same name). B3 is not updating the entry.

e.g As i needed

sheet 1

DATA ENTRY

1.APPLE 1
2.ORANGE 2
3.APPLE 1
4.CARROT 3
5.APPLE 2
6.APPLE 1
7.APPLE 1
8.ORANGE 2

Sheet 2

DATA BANK FROM ENTRY SHEET 1

APPLE =6
ORANGE =4
CARROT =3

this module that i meant if any confusion
 
Upvote 0
I assume 1. etc. are not part of your data in Sheet1.

In B2 of Sheet2 enter and copy down:

=SUMIFS(Sheet1!B:B,Sheet1!A:A,$A1)

where $A1 = APPLE, $A2 = ORANGE, etc.
 
Upvote 0
OK after stumble this i finally got it. Because i am a beginner. So some formula need to take time to understand it.
below is my code. And now i understand how its work.

Code:
=SUMIFS(ENTRY!B1:B30,ENTRY!A1:A30,"DELL")

I assume 1. etc. are not part of your data in Sheet1.

In B2 of Sheet2 enter and copy down:

=SUMIFS(Sheet1!B:B,Sheet1!A:A,$A1)

where $A1 = APPLE, $A2 = ORANGE, etc.
 
Upvote 0

Forum statistics

Threads
1,224,748
Messages
6,180,721
Members
452,995
Latest member
isldboy

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