iT邦幫忙

0

兩份EXCEL自動互相對照的公式應用?

  • 分享至 

  • xImage

不好意思想請教各位高手

我有一份工作上的EXCEL是專門統計每人使用次數的
如下圖1(●代表當天有使用):
圖1

做完上圖1的統計表後,主管要求我要依照上圖1的統計天數表再拉出圖2(圖2為自己手動拉的),並且和我說,EXCEL中有公式可以讓你再拉出圖2時就自動對照圖1,做的當下就會知道自己的總數有無拉錯。
(圖1及圖2為不同EXCEL檔)
圖2

主管請我自己找出該用哪種公式應用在這裡,但我在這裡真的卡住了很久,不知道該怎麼進行,請求各位高手相助,謝謝

froce iT邦大師 1 級 ‧ 2024-01-17 10:18:38 檢舉
這用公式不好做,你主管一定沒自己做過。
去學power query。
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中
1
ccenjor
iT邦大師 9 級 ‧ 2024-01-17 20:55:15

https://ithelp.ithome.com.tw/upload/images/20240117/20109881M54k3vH3SC.jpg
V2:
=IFERROR(INDEX($D$1:$D$13,MID(TEXTJOIN(",",,IF($E$4:$S$13="l",TEXT(ROW($E$4:$S$13)-MOD(ROW($E$4:$S$13),2),"000"),"")),1+(ROW()-2)*4,3)),"")
向下複製公式到V3:V110。
W2:
=IFERROR(INDEX($C$1:$C$13,MID(TEXTJOIN(",",,IF($E$4:$S$13="l",TEXT(ROW($E$4:$S$13)-MOD(ROW($E$4:$S$13),2),"000"),"")),1+(ROW()-2)*4,3)),"")
向下複製公式到W3:W110。
X2:
=IFERROR(IF(VALUE(MID(TEXTJOIN(",",,IF($E$4:$S$13="l",MOD(ROW($E$4:$S$13),2),"")),1+(ROW()-2)*2,1))=0,"午餐","晚餐"),"")
向下複製公式到X3:X110。
Y2:
=IFERROR(VALUE(MID(TEXTJOIN(",",,IF($E$4:$S$13="l",$E$2:$S$2,"")),1+(ROW()-2)*6,5)),"")
向下複製公式到Y3:Y110。
https://ithelp.ithome.com.tw/upload/images/20240117/20109881Axw30LUSZn.jpg
https://ithelp.ithome.com.tw/upload/images/20240117/201098811W3MU26S3N.jpg
比對用
Z2:=IFERROR(IF(FIND(Y2,TEXTJOIN(",",,IF(OFFSET($D$1,IF(X2="午餐",MATCH(V2,$D$1:$D$13,0)-1,MATCH(V2,$D$1:$D$13,0)),1,1,15)="l",$E$2:$S$2)))>0,"有","沒有"),"")
向下複製公式到Z3:Z110。
https://ithelp.ithome.com.tw/upload/images/20240118/20109881jSv7zWUjWR.jpg

看更多先前的回應...收起先前的回應...

ccenjor
您好~謝謝您
我有照著您的公式打進去,想請問為什麼我輸入後都不會顯示出資料?
3

ccenjor iT邦大師 9 級 ‧ 2024-01-18 20:15:12 檢舉

可能你的版本是2019(含)以前版本要按CTRL+SHIFT+ENTER鍵。

ccenjor iT邦大師 9 級 ‧ 2024-01-18 20:52:31 檢舉

我的範例檔位置:範例

ccenjor
好的!非常謝謝您~我再自己練習一下!

0
danbi0032
iT邦見習生 ‧ 2024-01-18 04:08:36

Start by creating a new Power Automate Desktop flow.
Attach to the two running Excel tables to compare. ...
Initialize a Variable which holds for example the value “0” in case of total Match and the value “1” in case of a mismatch.

0
dave4567
iT邦見習生 ‧ 2024-01-31 18:47:11

To automatically compare two Excel sheets, you can use the VLOOKUP function. In one sheet, input " Subway sandwich prices " data, and in the other, use VLOOKUP to find matching items. The formula would be like "=VLOOKUP(A2,Sheet1!A:B,2,FALSE)" assuming "Subway menu" data is in Sheet1. This helps cross-reference data between the two sheets seamlessly for efficient comparison.

0

To automatically compare two Excel copies, you can use a combination of Excel formulas and features like conditional formatting. Here's a step-by-step guide:

Open Both Excel Files: Open the two Excel files you want to compare.

Copy Data: Copy the data you want to compare from both Excel files and paste them into the new worksheet. Ensure that the data you're comparing is arranged in a similar manner in both sheets.

Identify Unique Entries: You can use Excel formulas like VLOOKUP, INDEX MATCH, or COUNTIF to identify entries that are unique to each sheet. For example, if you're comparing a list of items in column A, you can use a formula in column B of the new worksheet to check if each item exists in the other sheet. If it doesn't, mark it as unique.

Conditional Formatting: You can use conditional formatting to highlight the differences between the two sheets. For example, you can set up conditional formatting rules to highlight cells in one sheet that don't match the corresponding cells in the other sheet.

Review and Analyze: Once you have applied formulas and conditional formatting, review the new worksheet to identify the differences between the two Excel files.

Saxenda UK Cheapest: If you want to include the keyword "Saxenda UK Cheapest" in your comparison, you can add another column in your comparison worksheet where you search for this keyword using a formula like SEARCH or FIND. This formula will indicate whether the keyword exists in each row of your data.

By following these steps, you can effectively compare two Excel copies and identify any differences, including checking for the presence of the keyword "Saxenda Uk Cheapest" in your data.

我要發表回答

立即登入回答