Excel formula

Rasscal

New Member
Joined
Jan 10, 2019
Messages
16
Hi folks

im really new to excel & wondered if someone would help me with a formula

exampled below im trying to find "sales order" on sheet 2 within "order number" in sheet 1 IF warehouse error equals True display username, im asuming this is a vlookup formula but i cannot get it to work with my basic knowledge of excel.

Sheet 1
[TABLE="width: 500"]
<tbody>[TR]
[TD]Order number[/TD]
[TD]Warehouse Error[/TD]
[TD]User name[/TD]
[/TR]
[TR]
[TD]TT4002112[/TD]
[TD]True[/TD]
[TD](RESULT HERE)[/TD]
[/TR]
[TR]
[TD][TABLE="width: 80"]
<tbody>[TR]
[TD]TT4053763[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]False[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Sheet 2
[TABLE="width: 500"]
<tbody>[TR]
[TD]Sales Order[/TD]
[TD]user name[/TD]
[/TR]
[TR]
[TD]4002112[/TD]
[TD]micky mouse[/TD]
[/TR]
[TR]
[TD]4053763[/TD]
[TD]daffy duck[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
wow super quick & worked first time after i put sales order in my first column


=VLOOKUP(RIGHT(E2,7)+0,'FY19 PPD Data'!A2:R1048576,17,0)

I understand the above formula apart from the hightlighted above, what does this mean?

And to go one step further, anyway to dispaly a user name if TRUE but N/A if False

many thanks
 
Upvote 0
=IFERROR(VLOOKUP(RIGHT(Sheet1!A2,7)+0,Sheet2!A$2:B$3,2,0),"N/A")

sorry i think you misunderstood from my poor explanation the "TRUE or FALSE" statments are data inputted manually not errors created by other formulas

which means the above IFERROR is not working correctly

Sheet 1

[TABLE="class: cms_table, width: 500"]
<tbody>[TR]
[TD]Order number[/TD]
[TD]Warehouse Error[/TD]
[TD]User name[/TD]
[/TR]
[TR]
[TD]TT4002112[/TD]
[TD]True[/TD]
[TD](RESULT HERE)[/TD]
[/TR]
[TR]
[TD="bgcolor: #FAFAFA"][TABLE="class: cms_table, width: 80"]
<tbody>[TR]
[TD]TT4053763[/TD]
[/TR]
</tbody>[/TABLE]

[/TD]
[TD="bgcolor: #FAFAFA"]False[/TD]
[/TR]
</tbody>[/TABLE]


i have also put my table array into a table so the formula is updated as new data is added, as seen below

=VLOOKUP(RIGHT(E6,7)+0,PPD,17,0)

=IFERROR(VLOOKUP(RIGHT(E3,7)+0,PPD,17,0),"N/A")
 
Upvote 0
to add a spanner in the works

my current formula is

=IF(AND(D2="PWG : Picked and packed wrong goods",Q2="Yes"),VLOOKUP(RIGHT(H2,7)+0,'FY18-FY19 PPD.xlsx'!PPD_3[#All],17,0),"Non WH Error")

& below is where i would like to get to

If cell D2 = PWG : Picked and packed wrong goods or DE : Despatch Error
and cell Q2 = Yes
Then lookup the right 7 numbers & display whats in column 17
IF
cell L3 Matches in column G

I hope that makes sense :)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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