More than one "IF" formula in a string

merryperson

Board Regular
Joined
Apr 27, 2005
Messages
72
Hi I am in the UK and analysing data for VAT purposes and want to produce a report with all transactions which show the VAT % of more than 21% less than 19% but not 0%.

The data I will have is as below
Column A (name) Column B (VAT %)
Dave 21%
Bill 15%
Brian 20%
Steve 20%
Jane 0%

I was going to use an IF formula to pick the results where the VAT % in column B was > 21% and <than 19% but this would then bring all the 0% as well which I don't need in the report.
The report would pull out the names Dave and Bill but not show Jane

Is there a way I can say greater than 21% less than 19% but not 0% in a formula
Any ideas?
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Try this array formula in D2 copied down
=IFERROR(INDEX(A$2:A$6,SMALL(IF((B$2:B$6>=0.21)+(B$2:B$6>0)*(B$2:B$6<0.19),ROW(A$2:A$6)-ROW(A$2)+1),ROWS(D$2:D2))),"")
Ctrl+Shift+Enter

M.
 
Upvote 0
Hi Sorry and unless I am doing something wrong it picks up the 21% but not the 15% but what is the Ctrl+Shift+enter for?
 
Upvote 0
Upvote 0
well thats something I have learnt today and thanks for all your help much appreciated and works a treat
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
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