简体   繁体   English

Excel 2007-具有唯一值的强制性单单元格输入

[英]Excel 2007 - Mandatory single cell input with unique value

I am working in a call center and I create the daily reports of tickets. 我在呼叫中心工作,并创建票务的每日报告。 The daily report contains the tickets(logged calls in the system) and the queue(language) they have been logged. 每日报告包含票证(系统中已记录的呼叫)和已记录的队列(语言)。 Ex.: "CALL12121/IM12121212 - IT/FR/EN/RO queue" 例如: "CALL12121/IM12121212 - IT/FR/EN/RO queue"

The excel file looks sth like this: excel文件看起来像这样:

...............A.......... |...............B................|..............C..............| ...... A .......... | ............... B ....... ......... | ..............ç.............. |

1 ..... Ticket Nr ....|.... Language FR .....|..... Language IT ....| 1 ..... Ticket Nr .... | .... Language FR ..... | ..... Language IT .... |

2 ....IM123456......|..............1.................|..............................| 2 .... IM123456 ...... | .............. 1 ......................... .......................... |

3.......................... |.................................|..............................| 3 .......................... | | ............................... ........... | .............................. |

So, what I need is, basically, when an agent completes the Excel report with the ticket number (eg IM1213123 ) he MUST enter a value for the queue and the value is the number 1 . 因此,基本上,我需要的是当代理人用票证编号(例如IM1213123 )完成Excel报告时,他必须输入队列的值,并且该值是数字1 After that all the queue/language cells for that row to be locked/blocked and that agent not to be able to enter other values. 之后,该行的所有队列/语言单元将被锁定/阻止,并且该代理将无法输入其他值。

For example: The excel sheet looks empty like the above one. 例如:excel工作表看起来像上面的一样是空的。 The agent enters/copy-paste the ticket number in a cell in the column TICKET and after he needs to enter the queue/language value. 代理进入/复制粘贴的票号在列的单元格TICKET ,他需要进入队列/语言值之后。 And in case he doesn't enter a value for the queue something (a windows I guess) will prompt him, when he tries to add another value in any other cell(except the corresponding one), that he has completed the report correctly (or something like that) 如果他没有为队列输入值,当他尝试在任何其他单元格中添加另一个值(对应的单元格除外)时,某些东西(我猜是一个窗口)会提示他,他已经正确完成了报告(或类似的东西)

Example: the column A is named Ticket column B is named FR and column C is named IT . 示例:列A被命名为Ticket列B被命名为FR ,列C被命名为IT I am the agent and I need to complete my report and lets say I have a single ticket to report. 我是代理商,我需要填写报告,并且说我只有一张票即可报告。 I open the Excel Daily Report file -> Paste the ticket number in the A2 cell, and after that I complete also the language/queue column. 我打开Excel Daily Report文件->将票证号码粘贴到A2单元格中,然后再完成语言/队列列。 Lets say I enter 1 in B2 for FR language. 假设我在FR语言的B2中输入1。 And if I also want to enter another 1 on C2 to show me an error or for the rest of the row to be blocked as I am not allow to enter multiple values for in the Language part in the report. 如果我还想在C2上输入另一个1来显示错误或该行的其余部分被阻止,因为我不允许在报告的“语言”部分中输入多个值。 I mean one ticket (IMxxxxx) can't be created on both FR and IT queue. 我的意思是不能在FR和IT队列上都创建一张票证(IMxxxxx)。 Only 1 queue to be allowed to be 'selected'. 仅允许“选择” 1个队列。 Only for 1 language to be able to enter a value. 仅一种语言可以输入值。

So as from the above example: for IM123456, I should only enter a single value, either 1 for FR, either 1 for IT, can't be both and if none is enter and I move on the next row or trying to save the file to receive a warning that some cell values have not be entered. 因此,如上例所示:对于IM123456,我应该只输入一个值,对于FR,请输入1,对于IT,请输入1,不能同时输入,如果没有输入,我将继续进行下一行或尝试保存文件以收到警告,提示您尚未输入某些单元格值。 The same thing for that row and the same for the next one etc. So basically for a ticket nr entered in a row, only one value to be entered on one of the language columns for that row. 该行相同,下一行相同。因此,基本上,对于在行中输入的票证nr,在该行的语言列之一中只能输入一个值。

I know that is part of Excel Macros and VB programming(where I have no knowledge) can you please give me the code or maybe where should I read more etc ? 我知道这是Excel宏和VB编程的一部分(我不了解),请您给我代码,或者在哪里阅读更多内容?

I am working in Excel 2010. 我正在使用Excel 2010。

You could use a dropdown list instead and just have one field called language 您可以改用下拉列表,而只有一个字段称为language

Check this out : http://www.excel-easy.com/examples/dependent-drop-down-lists.html 检查一下: http : //www.excel-easy.com/examples/dependent-drop-down-lists.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM