Vlookup with If formulas issues,

marcdarne

New Member
Joined
Sep 4, 2014
Messages
8
Hi All,

Having problems trying to create the right formula for what I'm after. I have tired to do a Vlookup with a If formula however it returned an error.

Basically what I am attempting to do is have a cell in one worksheet find a string of text in another worksheet called "CARRIED TO SUMMARY" then return the figure in the cell adjacent. I also wanted it to return a zero figure if there was no figure in that cell rather than a N/A# message.
Sample below

SUMMARY PAGE

[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]Ref[/TD]
[TD]Description[/TD]
[TD]Cost[/TD]
[TD]Cost inc VAT[/TD]
[TD]Overall %[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Example[/TD]
[TD][/TD]
[TD][/TD]
[TD]1.5%[/TD]
[/TR]
</tbody>[/TABLE]

BACKUP PAGE - EXAMPLE

[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]Ref[/TD]
[TD]Description[/TD]
[TD]Qty[/TD]
[TD]Unit[/TD]
[TD]Rate[/TD]
[TD]TOTAL[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1.1[/TD]
[TD]AAA[/TD]
[TD]12[/TD]
[TD]M²[/TD]
[TD]1[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1.1[/TD]
[TD]BBB[/TD]
[TD]5[/TD]
[TD]M³[/TD]
[TD]5[/TD]
[TD]25[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]TOTAL CARRIED TO SUMMARY[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]37[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/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.
Try this:

=VLOOKUP("TOTAL CARRIED TO SUMMARY",'BACKUP PAGE'!$B$1:$F$1000,5,0)
 
Upvote 0
Or this to make errors 0:

=IFERROR(VLOOKUP("TOTAL CARRIED TO SUMMARY",'BACKUP PAGE'!$B$1:$F$1000,5,0),0)
 
Upvote 0
to accommodate for your added "wanted it to return a zero figure if there was no figure in that cell rather than a N/A# message"

Modify the above to:

=IFERROR(VLOOKUP("TOTAL CARRIED TO SUMMARY",'BACKUP PAGE'!$B$1:$F$1000,5,0),0)

HTH,

Jim
 
Upvote 0
Thanks Steve,

However still not working, received the following error:

[We found a problem with this formula. Try clicking Insert Function on the Formulas tab to fix it, or click Help for more info on common Formula problems]

=IFERROR(VLOOKUP("TOTAL CARRIED TO SUMMARY",'Toxic Hazardous Material'!B$1$:$F1000$,6,0),0)
 
Upvote 0
Hi

Your dollar signs are in the wrong place. They should go around just the letter of the cell reference. Not $F1000$ but $F$1000. Also you are out of range. B:F is 5 columns wide so you cant have ,6,0. Max is ,5,0.
 
Upvote 0

Forum statistics

Threads
1,224,396
Messages
6,178,394
Members
452,844
Latest member
Shebl

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