Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
330 views
in Technique[技术] by (71.8m points)

Excel Formula that Match the Year and Quarter then Paste the Result

I have been using a Microsoft Excel formula that matches the Year and Quarter in Sheet1 then copies the required cell value and then paste that value into Sheet2 COl"B".

My formula is not dynamic it just works for year 2020 not for further years available in Sheet1 that are 2021 and 2020

I have tried to create something that works for my but could not. I have attached a Google Sheet please have look into it.

Your help will be highly appreciated.

https://docs.google.com/spreadsheets/d/1VgFn2Rpw3PAG_pBg1-YWfTexGuHHzzqiGBiUQDbpwLE/edit#gid=758402044

question from:https://stackoverflow.com/questions/65884626/excel-formula-that-match-the-year-and-quarter-then-paste-the-result

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

In C14 of Sheet2 try:

=IF(MOD(ROW(),3)=0,LOOKUP(2,1/((Sheet1!B$2:B$15=C$1+INT(COUNT(C$13:C13)/4))*(Sheet1!C$2:C$15=MOD(COUNT(C$13:C13),4)+1)),Sheet1!E$2:E$15),"")

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...