Value based on column numbers

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
1,226
Office Version
  1. 2010
Platform
  1. Windows
  2. Mobile
Column A2:A9999 contains values. B1=500 & C1=1000.
If any value in the column A2:A9999 is either of the 2 range B1 & C1 i.e <B1 or >C1,
answer D1=1 else 0.
Column A2:A9999 may also contain #N/A or alphanumeric generated thr' formula which has to be ignored.
i.e. GDR8709 or HHH or #N/A has to be ignored.
 
This works.

You are welcome.

But i found little more....
I want to find whether the range contains either of 600, 601, 602 or not; and I would be punching in B1=603 & C1=599.

That's vague. Try to be specific by way of an example. That is, as have done, construe a small sample and word the outcome you want to see using that sample.
 
Upvote 0

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
A1:20
A2:200
A3:450
A4:#N/A
A5:600
A6:9999
A7:9998
A8:10000
I want to check whether the range consists 9999 or not. If yes then 1 else 0.
I thought of an idea to use B1=10000 & C1=9998 so that 9999 is 'trapped' in between as <10000 (<B1) & >9998 (>C1).
Another idea would also be welcomed. Result/goal is same.
 
Upvote 0
A1:20
A2:200
A3:450
A4:#N/A
A5:600
A6:9999
A7:9998
A8:10000
I want to check whether the range consists 9999 or not. If yes then 1 else 0.
I thought of an idea to use B1=10000 & C1=9998 so that 9999 is 'trapped' in between as <10000 (<b1) &="">9998 (>C1).
Another idea would also be welcomed. Result/goal is same.

Try...

=(COUNTIF(A1:A8,9999)>0)+0
</b1)>
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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