Hi I am working on an excel worksheet for work and I need some help please. To give you a quick background on what I want out of the sheet is this... I have 31 rows of information... one row for each day of the month. These rows repeat themselves with different information for each oil well in my area so my sheet is extreemly long... 61881 cells to be exact. So basically I am comparing the K column to cell O1 which i can type in wahtever number i want. And if any of hte days in the month are true every day in the month for that well turns true. The problem is is that I can only have 30 terms in the OR statement and I have 31 days in the month of Jan...etc. Below is the current formula but it is missing the last K term.... K33=$O$1 for the last day in the month.
=IF(OR(K3=$O$1,K4=$O$1,K5=$O$1,K6=$O$1,K7=$O$1,K8=$O$1,K9=$O$1,
K10=$O$1,K11=$O$1,K12=$O$1,K13=$O$1,K14=$O$1,K15=$O$1,
K16=$O$1,K17=$O$1,K18=$O$1,K19=$O$1,K20=$O$1,K21=$O$1,
K22=$O$1,K23=$O$1,K24=$O$1,K25=$O$1,K26=$O$1,K27=$O$1,
K28=$O$1,K29=$O$1,K30=$O$1,K31=$O$1,K32=$O$1),"TRUE")
So do i need to add another OR statement or and IF statement or an AND statement to make this work?
Also is there any way possible to be able to have another cell where i can type in the number of days in the month and then it puts that many terms into my formula or is that not possible? Because each month i get sent this huge 60 000 row report and I am going to copy and past this formula for each month... the other problem is that the number of days in the month change... so i will have to alter my formula over and over each month.
Any help is much appreciated.
Thanks,
Ryan
=IF(OR(K3=$O$1,K4=$O$1,K5=$O$1,K6=$O$1,K7=$O$1,K8=$O$1,K9=$O$1,
K10=$O$1,K11=$O$1,K12=$O$1,K13=$O$1,K14=$O$1,K15=$O$1,
K16=$O$1,K17=$O$1,K18=$O$1,K19=$O$1,K20=$O$1,K21=$O$1,
K22=$O$1,K23=$O$1,K24=$O$1,K25=$O$1,K26=$O$1,K27=$O$1,
K28=$O$1,K29=$O$1,K30=$O$1,K31=$O$1,K32=$O$1),"TRUE")
So do i need to add another OR statement or and IF statement or an AND statement to make this work?
Also is there any way possible to be able to have another cell where i can type in the number of days in the month and then it puts that many terms into my formula or is that not possible? Because each month i get sent this huge 60 000 row report and I am going to copy and past this formula for each month... the other problem is that the number of days in the month change... so i will have to alter my formula over and over each month.
Any help is much appreciated.
Thanks,
Ryan