Searching in columns

stratis

Board Regular
Joined
Dec 10, 2012
Messages
65
Hi,

I have the following problem:
I would like to construct a formula which will create the result in the column “Result from the formula”.

Way that I would like to make the formula works:
Looking to the column result if the result is YES or NO. Note that there is no other option.
The result in the column “Result from the formula” should be based in the data in columns “Account” and “State”.

Available Options:
  • The result for all the accounts of a certain category is ‘NO” in column “State”: In this case the formula should bring “NO” in all the respective accounts (e.g. case of account 12.04)
  • The result for an account with the less possible digits (5 including the “.”) is ‘YES” in column “State”: In this case the formula should bring “YES” in all the other accounts with the same beginning but more digits (e.g. case of account 12.06)
  • All the accounts of one level (e.g. accounts 30.01.00.00.00 and 30.01.00.00.99) have the same state “YES”. In this case the accounts with smaller details (e.g. 30.01.00.00, 30.01.00 and 30.01) should be filled with “YES”.


<tbody>
</tbody>
Example:
AccountStateResult from the formula
12.04NONO
12.04.00NONO
12.04.00.00NONO
12.04.00.00.00NONO
12.04.00.00.07NONO
12.06YESYES
12.06.00NOYES
12.06.00.00NOYES
12.06.00.00.04NOYES
12.06.00.00.05NOYES
50.00NONO
50.00.00NONO
50.00.00.00NONO
50.00.00.00.00YESYES
50.00.00.00.91NONO
30.01NOYES
30.01.00NOYES
30.01.00.00NOYES
30.01.00.00.00YESYES
30.01.00.00.99YESYES

<tbody>
</tbody>


Is this possible to happen?
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Forum statistics

Threads
1,215,295
Messages
6,124,103
Members
449,142
Latest member
championbowler

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