how do i combined if with v lookup

Henry_Falcon77

New Member
Joined
Feb 24, 2019
Messages
14
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
  2. MacOS
Hello All. I have 3 countries. Japan, USA, and China for example. EAch of those countries have certain limits. Japan would have 5k, USA would have 10k and china would have 20k. I would like to create a formula that if it displayed a certain country with amount, then it would read over the limit or under the limit. If my Japan total was 6k, I would like it read over the limit. If my USA total was 9k. I would like it to read under the limit. Thanks in advance.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
try this:
----------------
Book1
ABCDE
1Japan5000countryUSA
2USA10000limit9000
3China20000over/underunder
Sheet1
Cell Formulas
RangeFormula
E3E3=IF(VLOOKUP(E1,A1:B3,2,FALSE)<E2,"over","under")
Cells with Data Validation
CellAllowCriteria
E1List=$A$1:$A$3
 
Upvote 0
try this:
----------------
Book1
ABCDE
1Japan5000countryUSA
2USA10000limit9000
3China20000over/underunder
Sheet1
Cell Formulas
RangeFormula
E3E3=IF(VLOOKUP(E1,A1:B3,2,FALSE)<E2,"over","under")
Cells with Data Validation
CellAllowCriteria
E1List=$A$1:$A$3
That was beyond helpful. You saved me lots of time. In my excel sheets, column G and H are given and I was going to put the formula in column I. Do I have to keep on changing the first line of my formula with the $ symbol as in $A$2:$B$33 or is there a way I can lock all my data in columns A and B with $. For now, I am just changing my first line (I2 ) with the additional $ signs and then dragging down. . In the future, I plan to have my data in A and B on separate worksheet and just use it as a reference.
try this:
----------------
Book1
ABCDE
1Japan5000countryUSA
2USA10000limit9000
3China20000over/underunder
Sheet1
Cell Formulas
RangeFormula
E3E3=IF(VLOOKUP(E1,A1:B3,2,FALSE)<E2,"over","under")
Cells with Data Validation
CellAllowCriteria
E1List=$A$1:$A$3
Image example.PNG
 
Upvote 0

Forum statistics

Threads
1,215,461
Messages
6,124,955
Members
449,199
Latest member
Riley Johnson

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