How to Add Numerical Value to Over the limit countries using If statement with V lookup

Henry_Falcon77

New Member
Joined
Feb 24, 2019
Messages
14
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
  2. MacOS
Good morning All. Thank you to ExceLoki for helping me with this formula yesterday. How would I add the numerical overage to the formula? For now, it will say over or under the limit. For all overages, I would like it to state the numerical amount of overage with the word over beside it. For example, Belgium would be over 26 cents, so I would like to state 26 cents over. Or if Bangladesh was at 9000 earned, I would like the formula to be able to state 1000 over . I don't need the under values. Thank you in advance for your assistance. The 2 columns on the left are my thresholds for each country. Column C and D is what I see on my end with a few 1,000 .
Add Numerical Vale for Over Amounts.PNG
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
thanks for the call out... lol
try this
--------------
Book1
ABCDEFGHI
1CountryThresholdCountry GivenTotal EarnedResult Formula
2Bangladesh8000Bangladesh8000under the limit
3Belgium9000Belgium9001.26over 1.26
4Bulgaria9000Belgium2000under the limit
5Canada10000Belgium6000under the limit
6China5000Belgium8000under the limit
7Cyprus2000Bangladesh9000over 1000
8Czech Republic5000
9Egypt3000
10Estonia5000
11France5000
12German5000
13Iceland9000
14Indonesia2000
15Israel3000
16Jamaica7500
17Korea2000
18Latvia5000
19Morocco2000
20Netherlands2000
21Norway2000
22Pakistan5000
23Phillipines3000
24Poland2000
25Portugual5000
26Replublic of Slovenica5000
27Romania2000
28Slovak Republic5000
29Spain5000
30Thailand3000
31Trinidad & Tobago2000
32Tunisia4000
Sheet1
Cell Formulas
RangeFormula
I2:I7I2=IF(VLOOKUP(G2,A:B,2,FALSE)<H2,"over "&ROUND(H2-VLOOKUP(G2,A:B,2,FALSE),2),"under the limit")
 
Upvote 0
thanks for the call out... lol
try this
--------------
Book1
ABCDEFGHI
1CountryThresholdCountry GivenTotal EarnedResult Formula
2Bangladesh8000Bangladesh8000under the limit
3Belgium9000Belgium9001.26over 1.26
4Bulgaria9000Belgium2000under the limit
5Canada10000Belgium6000under the limit
6China5000Belgium8000under the limit
7Cyprus2000Bangladesh9000over 1000
8Czech Republic5000
9Egypt3000
10Estonia5000
11France5000
12German5000
13Iceland9000
14Indonesia2000
15Israel3000
16Jamaica7500
17Korea2000
18Latvia5000
19Morocco2000
20Netherlands2000
21Norway2000
22Pakistan5000
23Phillipines3000
24Poland2000
25Portugual5000
26Replublic of Slovenica5000
27Romania2000
28Slovak Republic5000
29Spain5000
30Thailand3000
31Trinidad & Tobago2000
32Tunisia4000
Sheet1
Cell Formulas
RangeFormula
I2:I7I2=IF(VLOOKUP(G2,A:B,2,FALSE)<H2,"over "&ROUND(H2-VLOOKUP(G2,A:B,2,FALSE),2),"under the limit")

thanks for the call out... lol
try this
--------------
Book1
ABCDEFGHI
1CountryThresholdCountry GivenTotal EarnedResult Formula
2Bangladesh8000Bangladesh8000under the limit
3Belgium9000Belgium9001.26over 1.26
4Bulgaria9000Belgium2000under the limit
5Canada10000Belgium6000under the limit
6China5000Belgium8000under the limit
7Cyprus2000Bangladesh9000over 1000
8Czech Republic5000
9Egypt3000
10Estonia5000
11France5000
12German5000
13Iceland9000
14Indonesia2000
15Israel3000
16Jamaica7500
17Korea2000
18Latvia5000
19Morocco2000
20Netherlands2000
21Norway2000
22Pakistan5000
23Phillipines3000
24Poland2000
25Portugual5000
26Replublic of Slovenica5000
27Romania2000
28Slovak Republic5000
29Spain5000
30Thailand3000
31Trinidad & Tobago2000
32Tunisia4000
Sheet1
Cell Formulas
RangeFormula
I2:I7I2=IF(VLOOKUP(G2,A:B,2,FALSE)<H2,"over "&ROUND(H2-VLOOKUP(G2,A:B,2,FALSE),2),"under the limit")
How did you get your excel skills? Is there a specific book you recommend? Thanks again for your help the past few days. ONe last question.
Is there a way to put the over amount incolumn J. I know you gave me the answer to what I specifically asked. I was wondering if it's possible to have the word "over" in column I, as you showed me originally yesterday but have the formula place the overage dollar amount directly to the column on its right.
 
Upvote 0
How did you get your excel skills? Is there a specific book you recommend? Thanks again for your help the past few days. ONe last question.
Is there a way to put the over amount incolumn J. I know you gave me the answer to what I specifically asked. I was wondering if it's possible to have the word "over" in column I, as you showed me originally yesterday but have the formula place the overage dollar amount directly to the column on its right.
self taught over the years and lots of practice. one suggestion is to be active on this board. help others keeps you going and learning from others as well.

do you mean like this?
how do i combined if with v lookup.xlsx
GHIJ
1Country GivenTotal EarnedResult FormulaOverage
2Bangladesh$ 8,000.00under the limit 
3Belgium$ 9,001.26over$1.26
4Belgium$ 2,000.00under the limit 
5Belgium$ 6,000.00under the limit 
6Belgium$ 8,000.00under the limit 
7Bangladesh$ 9,000.00over  
Sheet1
Cell Formulas
RangeFormula
I2,I4:I7I2=IF(VLOOKUP(G2,A:B,2,FALSE)<H2,"over ","under the limit")
J2:J7J2=IF(I2="over",TEXT(ROUND(H2-VLOOKUP(G2,A:B,2,FALSE),2),"$#,##0.00"),"")
I3I3=IF(VLOOKUP(G3,A:B,2,FALSE)<H3,"over","under the limit")
 
Upvote 0
self taught over the years and lots of practice. one suggestion is to be active on this board. help others keeps you going and learning from others as well.

do you mean like this?
how do i combined if with v lookup.xlsx
GHIJ
1Country GivenTotal EarnedResult FormulaOverage
2Bangladesh$ 8,000.00under the limit 
3Belgium$ 9,001.26over$1.26
4Belgium$ 2,000.00under the limit 
5Belgium$ 6,000.00under the limit 
6Belgium$ 8,000.00under the limit 
7Bangladesh$ 9,000.00over  
Sheet1
Cell Formulas
RangeFormula
I2,I4:I7I2=IF(VLOOKUP(G2,A:B,2,FALSE)<H2,"over ","under the limit")
J2:J7J2=IF(I2="over",TEXT(ROUND(H2-VLOOKUP(G2,A:B,2,FALSE),2),"$#,##0.00"),"")
I3I3=IF(VLOOKUP(G3,A:B,2,FALSE)<H3,"over","under the limit")
Yes, that is perfect. I took a few excel courses at my local University but they seemed to focus more on forecasting in excel. I am going to start looking over all the post to increase my skill level.
 
Upvote 0
For future reference.

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Multiple if statement
There is no need to repeat the link(s) provided above but if you have posted the question at other places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
For future reference.

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Multiple if statement
There is no need to repeat the link(s) provided above but if you have posted the question at other places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
My apologies. Thank you for the information. I will read up on the rules and make sure I post properly in the future
 
Upvote 0

Forum statistics

Threads
1,214,976
Messages
6,122,543
Members
449,089
Latest member
davidcom

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