1

2 つのスプレッドシートを比較するのが好きです。file1.xls と file2.xls としましょう。file1 のレコードと file2 の列のレコードを比較するのが好きです。特定のセルと一致する場合、file2.xls の特定の列を更新したいと思います (たとえば、file2.xls に match という列があるとします)。

例:

ホスト名に基づいて file1.xls と File2.xls を比較する必要があります。一致する場合は、一致列の下に yes を追加します。

File1.xls (空白のセルがある場合があります)

Hostname | IP Address 

server1  | 192.168.1.1

server2  | 192.168.2.1 

ファイル2.xls

Location | Hostname | IP Address  | Match 

Rack1    | server1  | 192.168.1.1 | Yes    (the script will enter yes under match here)

Rack2    | server3  | 192.168.2.2 |         (there will be no match here)      

Rack3    | server2  | 192.168.2.1 | yes

誰かがここで私を助けることができますか? Windowsだけでなく、さまざまなプラットフォームでこれを実行する必要があるため、pythonまたはperlである可能性があります。

4

0 に答える 0