Pulling data from a table if it meets certain criteria

EmmaTM

Board Regular
Joined
Jan 5, 2022
Messages
104
Office Version
  1. 365
Platform
  1. Windows
Hi,
If I have a large table of data similar to this:
CustomerAoD Net LimitOver LimitOver Limit FlagApproaching LimitApproaching Limit
Alpha-- 25,000.00Ok0.00%Ok
Beta21,957.00- 128,043.00Ok14.64%Ok
Charlie23,470.50- 9,529.50Ok71.12%Warning
Delta- 16,666.67- 16,666.67Ok0.00%Ok
Echo--Ok0.00%Ok
Foxtrot--Ok0.00%Ok
Golf14,280.7114,280.71Warning0.00%Ok
Hotel91,164.4061,164.40Warning303.88%Warning

On a seperate tab I only want to list out those that have warnings in the 'over limit flag' & 'approaching limit' columns, please can someone help with a formula to do this?

Thank you
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
You'll need to clarify a couple of things:

1) Are you saying you want to display the name of the customers that have "warning" displayed in both Over Limit Flag and Approaching Limit columns? or either one of them?
2) What are the columns in question? A,B,C,D etc.
 
Upvote 0
Try:
Sheet 2
Book2
ABCDEF
1CustomerAoD Net LimitOver LimitOver Limit FlagApproaching LimitApproaching Limit
2Hotel91164.461164.4Warning3.0388Warning
Sheet2
Cell Formulas
RangeFormula
A2:F2A2=FILTER(Sheet1!A2:F9,(Sheet1!D2:D9="Warning")*(Sheet1!F2:F9="Warning"))
Dynamic array formulas.


Sheet 1
Book2
ABCDEF
1CustomerAoD Net LimitOver LimitOver Limit FlagApproaching LimitApproaching Limit
2Alpha--25,000.00Ok0.00%Ok
3Beta21,957.00-128,043.00Ok14.64%Ok
4Charlie23,470.50-9,529.50Ok71.12%Warning
5Delta-16,666.67-16,666.67Ok0.00%Ok
6Echo--Ok0.00%Ok
7Foxtrot--Ok0.00%Ok
8Golf14,280.7114,280.71Warning0.00%Ok
9Hotel91,164.4061,164.40Warning303.88%Warning
Sheet1




If you want data if warning is in either column then change formula to:
=FILTER(Sheet1!A2:F9,(Sheet1!D2:D9="Warning")+(Sheet1!F2:F9="Warning"))
 
Upvote 0
Hi - appologies, the columns above are A to F and I want to pull the entire row of data if either of those are flagged as a warning.
So in the example above I would want data pulled from columns A- F for rows 4, 8 & 9 to be displayed on a seperate tab.

Thank you
 
Upvote 0
My second formula above should work.

Sheet 2
Book2
ABCDEF
1CustomerAoD Net LimitOver LimitOver Limit FlagApproaching LimitApproaching Limit
2Charlie23470.5-9529.5Ok0.7112Warning
3Golf14280.7114280.71Warning0Ok
4Hotel91164.461164.4Warning3.0388Warning
Sheet2
Cell Formulas
RangeFormula
A2:F4A2=FILTER(Sheet1!A2:F9,(Sheet1!D2:D9="Warning")+(Sheet1!F2:F9="Warning"))
Dynamic array formulas.


Sheet 1
Book2
ABCDEF
1CustomerAoD Net LimitOver LimitOver Limit FlagApproaching LimitApproaching Limit
2Alpha--25,000.00Ok0.00%Ok
3Beta21,957.00-128,043.00Ok14.64%Ok
4Charlie23,470.50-9,529.50Ok71.12%Warning
5Delta-16,666.67-16,666.67Ok0.00%Ok
6Echo--Ok0.00%Ok
7Foxtrot--Ok0.00%Ok
8Golf14,280.7114,280.71Warning0.00%Ok
9Hotel91,164.4061,164.40Warning303.88%Warning
Sheet1
 
Upvote 1

Forum statistics

Threads
1,223,958
Messages
6,175,628
Members
452,661
Latest member
Nonhle

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