question

Céline Y2 avatar image
0 Likes"
Céline Y2 asked Ben Wilson edited

How do we create a pointer for a staff member in Excel ?

Hi!

I am working on a healthcare structure simulation. I want to point a staff member in Excel who will be associated to a patient. For example, the surgeon1 will operate the first patient. How can I do that in Excel ?


Thanks for you help !

FlexSim 20.1.2
excel importpointer label
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @celine.y2, was jordan.johnson's answer helpful? If so, please click the red "Accept" button on their answer. Or if you still have questions, add a comment and we'll continue the conversation.

0 Likes 0 ·

1 Answer

Jordan Johnson avatar image
2 Likes"
Jordan Johnson answered Ben Wilson edited

An Excel Spreadsheet cell can only contain a number or text. However, you can put the name of a FlexSim operator in the excel spreadsheet. Then, you can import the table. Once the table is in FlexSim, you can write code that converts the text of the name to a pointer. Here is an example of code that could do that:

Table table = Table("TableWithNameColumn"); for (int i = 1; i <= table.numRows; i++) { table[i]["ColWithName"] = Model.find(table[i]["ColWithName"]; }

Note that this won't work if you import the excel data into a bundle table.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.