Help with formula

PM1

Board Regular
Joined
Oct 28, 2005
Messages
192
Hi Guys,

Struggling with a If Vlookup Statement.

I have =if(vlookup(b195,ITSPEND,2,="BLANKET",vlookup(b195,ITSPEND,3,0)) but theres an error and I can't see it
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Try the below, you need to put your condition outside then lookup brackets

=if(vlookup(b195,ITSPEND,2,0)="BLANKET",vlookup(b195,ITSPEND,3,0))

Is itspend a named range?
edit: I adjusted this from my phone but it should work
 
Last edited:
Upvote 0
is this working

=if(vlookup(b195,ITSPEND,2,0)="BLANKET",vlookup(b195,ITSPEND,3,0),"Not found"))

<tbody>
</tbody>
 
Upvote 0
IT SPEND is a Named Range as thus =OFFSET('Total IT Spend'!$A$1,0,0,COUNTA('Total IT Spend'!$A:$A),5) which is a Pivot Table
 
Upvote 0
Hi,

Just tried it and Yes it works :)

I get a FALSE if condition is not true but I'm sure I can work that out

Many Thanks
 
Upvote 0
Now that is a big Why, still trying to work out the logic of GETPIVOT DATA
 
Upvote 0
Now that is a big Why, still trying to work out the logic of GETPIVOT DATA

You should be able to find some examples even on this board...

What is supposed to be returned (with VLOOKUP or GETPIVOTDATA), text?
 
Last edited:
Upvote 0
I have one sheet which is full of Purchase Order Data. From that I constucted a Pivot Table that just reports the Budget Line, PO No & Spend Year.

I used the Offset Formula as the table is continously growing.

In another sheet I have all the Budjet Data and so I have added more columns of which one is the current Purchase Order Spend against the Budget. However I had to construct another Column to show the value of the Purchase Order where the Supplier is BLANKET, the reason for BLANKET is to show a spend against a budget where a supplier has not yet been chosen.

I now have 2 columns, one will have the total spend from the pivot table where BLANKET is not met, and the other where it is met. I then have another Column for Invoiced amount and finally an Accrual Column.

That in a nut shell is it. Getting the basic data is not a problem, it is a problem when I needed to meet 2 consitions in a pivot table, and of course deal with the issues of data not being found or N/A being returned.
 
Upvote 0

Forum statistics

Threads
1,214,632
Messages
6,120,649
Members
448,975
Latest member
sweeberry

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