Convert EXCEL TABLE reference into VB.NET calculation

I am converting an EXCEL spreadsheet with over 1,000 calculations into an application.  Using VB.NET.  I have figured out all the formulas and am almost done.  I have come across a formula that I do not know what to do with.

Cell C442 contains this formula:

The value displayed in Cell C442 is ($666,318.32)

Cell C241 contains the value 110

Cell B442 contains the value $100.00

Cell C440 contains the value $248,287.49; the cell contains a reference to cell $C$390

I just need to know how to convert the formula in Cell B442 into a VB.Net calculation.  The definitions I have read on TABLE have not provided a good answer.

Who is Participating?

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

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.

The squirly brakets {=TABLE(,C241)} mean that this is an array formula, and the TABLE function comes from either an addin or is a user defined function. You will need to find which one it is and get its parameters.
JANWIL78Author Commented:
Thank you for the information.  I do not see any meaningul UDFs in this spreadsheet.  There are 8 macros (macro1 - marcro8) that print out certain ranges.  That means there must have been an ADDIN that I don't have.
Check if there are any references set up. Also check the object browser and Function help on the Formula bar.
CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

Rory ArchibaldCommented:
What you have is a one variable data table. Check the cells above C442 until you come to one that does not contain a {TABLE} formula and that is the formula you are actually interested in.
Rory ArchibaldCommented:
Note: this is a built-in Excel function, not an add-in or UDF.
JANWIL78Author Commented:
C441, directly above C442, has the formula/reference =$C$390, with the value $248,287.49

The value in cell C390 is $248,287.49



what is this function doing to come up with the value (666,318.32)

Rory ArchibaldCommented:
Is there a formula in C390 or a literal value?
JANWIL78Author Commented:





there are formulas in each of these cells
Rory ArchibaldCommented:
It would be much easier to see the workbook as you have a lot of dependencies in there.

Essentially the TABLE formula substitutes the value in the cell to the left of it for the value in cell C241 in the formula that is driving it, which means that cell C241 is referred to by a formula somewhere on your sheet (typically this would be in the cell above your TABLE array, or for a 2 input table it would be the cell in the top left corner of the range).

So assuming you have the TABLE array formula in say cells C442:C450, the result in each cell will be the result of substituting the value in C241 with the value in B442:B450 in the relevant formula.

You can lookup data tables in Excel's help for examples that may make it clearer if you don't want to (or can't) post the workbook.

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
JANWIL78Author Commented:
Thank you!  I had looked up the data tables in Excel's Help and had a hard time applying it to my thus I am reaching out.  I can't post the workbook because it is confidential.  I am going to take your explanation and apply it.  It makes sense what you are saying.  I just need to take it and apply it to the worksheet and see if I can come up with the correct values.  IF I cannot make sense of it, I do have GOTOASSIST where I could send a link and we could take a look on my PC.  I am not sure if that is allowed thought.  I will get back to you.  Thank you.
JANWIL78Author Commented:
I was able to apply your explanation to the spreadsheet and converted the formula to VB.NET code.   The way you explained what TABLE was doing and applied it specifically to my spreadsheet and example was the ticket..thank you!
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.