Cannot seem to verify a statement on Excel

I have created an automated schedule maker but keep getting a blue dot and 0 (False) as a outcome of my IF statement..

The thing I am wondering is: Is it possible to have an IF statement where the false value gives you back the same result you initially begin with and are testing (within the same cell).

Heres a link to my spreadsheet:
<a href=http://www.filedropper.com/swedbankschema><img src=http://www.filedropper.com/download_button.png width=127 height=145 border=0/></a><br /><div style=font-size:9px;font-family:Arial, Helvetica, sans-serif;width:127px;font-color:#44a854;> <a href=http://www.filedropper.com >file upload</a></div>
http://www.filedropper.com/swedbankschema

The sheet named "Real Test" and cell C2 is where my error is occurring.

Any tips or help will be deeply appreciated :)
Hassan FarooqAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David Johnson, CD, MVPOwnerCommented:
C2 of Real Test has a circular reference
=(INDEX($I$2:$I$8,RANDBETWEEN(1,COUNTA($I$2:$I$8)),1)),IF(B2<>C2,INDEX($I$2:$I$8,RANDBETWEEN(1,COUNTA($I$2:$I$8)),1),E2)
0
Ejgil HedegaardCommented:
I don't think it is a good idea to use randbetween formulas to calculate this, because the list will change on every entry (calculation) in the sheet, even if it was possible to let the cell refer back to itself with a circular reference.
It is possible on very rare conditions (iteration convergence) to use circular reference, but normally the result is unpredictable, so I would never use it.

Here is another solution with a macro, where Shift Leader is found randomly, and Reserve also randomly, but excluding the already found Leader.
Accept macros on open.
It will only update the list when you press the button "Make new list".
With a twist, so all workers are assigned as uniformly as possible.
Meaning that all 7 workers are used once as Leader and Reserve every 7 days.

I have changed the formulas for Total Shifts, Total Reserve and Weekends in columns K to M.
Swedbank-Schema.xlsm
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Hassan FarooqAuthor Commented:
Completely makes sense.

You're correct, the constant change with every calculation was going to be my next step to solve.

I hadn't considered joining up K to M to what the schedule was giving me at the time...
My logic was all over the place now that I reflect upon my sheet.

Going to read up more on the statements used in your amended xlsm.
Stort tack till dig, hjälpte jättemycket! :)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.