Same Value with Condition

shbilalcom

New Member
Joined
Aug 17, 2014
Messages
13
As i m using Sum Values with condition "Sumifs"


but now i want to get the same value with condition

As i attached he picture, i want Column#F to write the Value from Column#A If Column#B have same value as Column#E

For Example Column#F should Find "1" in Column#B and then write the Value from Column#A which is "Ali"

0
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Hi,
do you mean like this?

Excel 2010
ABCDEF
1valuecdtvalresult
21a1a
32b
43c
54d
65e
76f
87g
98h
shbilalcom

a LOOKUP formula will return your query as long as ColumnA (lookup_vector) is sorted in ascending order.
 
Upvote 0
i will give you real example, what i need

This is my Sheet one

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Date[/TD]
[TD]Job #[/TD]
[TD]Price[/TD]
[/TR]
[TR]
[TD]Ali
[/TD]
[TD]5/4/2014[/TD]
[TD]6[/TD]
[TD]234[/TD]
[/TR]
[TR]
[TD]Ahmad[/TD]
[TD]3/4/2014[/TD]
[TD]8[/TD]
[TD]456[/TD]
[/TR]
[TR]
[TD]Bilal[/TD]
[TD]2/3/2014[/TD]
[TD]2[/TD]
[TD]874[/TD]
[/TR]
[TR]
[TD]Shafeeq[/TD]
[TD]4/5/2014[/TD]
[TD]5[/TD]
[TD]256[/TD]
[/TR]
[TR]
[TD]Sarfraz[/TD]
[TD]2/5/2014[/TD]
[TD]3[/TD]
[TD]963[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]5/2/2014[/TD]
[TD]9[/TD]
[TD]153[/TD]
[/TR]
[TR]
[TD]Ahmad[/TD]
[TD]6/3/2014[/TD]
[TD]1[/TD]
[TD]265[/TD]
[/TR]
[TR]
[TD]Raza[/TD]
[TD]5/6/2014[/TD]
[TD]4[/TD]
[TD]276[/TD]
[/TR]
[TR]
[TD]Rayan[/TD]
[TD]2/7/2014[/TD]
[TD]7[/TD]
[TD]834[/TD]
[/TR]
</tbody>[/TABLE]


now in my 2nd sheet i listed the job number and i want it to take the name of this job number from 1st sheet can any one please make any formula for me.

[TABLE="class: grid, width: 300"]
<tbody>[TR]
[TD]Job #[/TD]
[TD]Name[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Please help me to make kind of Lookup Formula for two sheets

i will give you real example, what i need

This is my Sheet one

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Date[/TD]
[TD]Job #[/TD]
[TD]Price[/TD]
[/TR]
[TR]
[TD]Ali
[/TD]
[TD]5/4/2014[/TD]
[TD]6[/TD]
[TD]234[/TD]
[/TR]
[TR]
[TD]Ahmad[/TD]
[TD]3/4/2014[/TD]
[TD]8[/TD]
[TD]456[/TD]
[/TR]
[TR]
[TD]Bilal[/TD]
[TD]2/3/2014[/TD]
[TD]2[/TD]
[TD]874[/TD]
[/TR]
[TR]
[TD]Shafeeq[/TD]
[TD]4/5/2014[/TD]
[TD]5[/TD]
[TD]256[/TD]
[/TR]
[TR]
[TD]Sarfraz[/TD]
[TD]2/5/2014[/TD]
[TD]3[/TD]
[TD]963[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]5/2/2014[/TD]
[TD]9[/TD]
[TD]153[/TD]
[/TR]
[TR]
[TD]Ahmad[/TD]
[TD]6/3/2014[/TD]
[TD]1[/TD]
[TD]265[/TD]
[/TR]
[TR]
[TD]Raza[/TD]
[TD]5/6/2014[/TD]
[TD]4[/TD]
[TD]276[/TD]
[/TR]
[TR]
[TD]Rayan[/TD]
[TD]2/7/2014[/TD]
[TD]7[/TD]
[TD]834[/TD]
[/TR]
</tbody>[/TABLE]


now in my 2nd sheet i listed the job number and i want it to take the name of this job number from 1st sheet can any one please make any formula for me.

[TABLE="class: grid, width: 300"]
<tbody>[TR]
[TD]Job #[/TD]
[TD]Name[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Re: Please help me to make kind of Lookup Formula for two sheets

Sheet1 consists of A:D.

Sheet2, B2, copied down:

=INDEX(Sheet1!A:A,MATCH(A2,Sheet1!C:C,0))
 
Upvote 0
Re: Please help me to make kind of Lookup Formula for two sheets

Try in Sheet2 B2 copied down

=INDEX(Sheet1!A$2:A$10,MATCH(A2,Sheet1!C$2:C$10,0))
 
Upvote 0
Re: Please help me to make kind of Lookup Formula for two sheets

In sheet2 B2

=INDEX(Sheet1!A:D,MATCH(A2,Sheet1!C:C,0),1)

where sheet1 A - D is Name1|Date|Job#|Price

and sheet2 A - B is Job#|Name1
 
Upvote 0
Given the following:

Excel 2010
ABCD
1NameDateJob #Price
2Ali5/4/20146234
3Ahmad3/4/20148456
4Bilal2/3/20142874
5Shafeeq4/5/20145256
6Sarfraz2/5/20143963
7John5/2/20149153
8Ahmad6/3/20141265
9Raza5/6/20144276
10Rayan2/7/20147834
shbilalcom_1



Excel 2010
AB
1Job #Name
21Ahmad
32Bilal
43Sarfraz
54Raza
65Shafeeq
76Ali
87Rayan
98Ahmad
109John
shbilalcom_2

Formula in B2 is =INDEX(shbilalcom_1!$A$2:$A$10,MATCH(A2,shbilalcom_1!$C$2:$C$10,0)) copied down till needed.
Note, all JOB numbers are unique.
 
Upvote 0
I have merged your two threads.

Please do not post the same question multiple times. All clarifications, follow-ups, and bumps should be posted back to the original thread. Per forum rules, posts of a duplicate nature will be locked or deleted (rule #9 here: Forum Rules).
 
Upvote 0

Forum statistics

Threads
1,223,900
Messages
6,175,276
Members
452,629
Latest member
SahilPolekar

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