formula works on column but not another column

abdelfattah

Well-known Member
Joined
May 3, 2019
Messages
1,429
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
hi, i have formula works in col g based on col a,b but when i would work col w based on d, e it doesn't work i hope somebody help
إدراج الاسماء تلقائي.xlsx
ABCDEFGHIJKLMNOPQRSTUVW
1teacherrdatecuurent2022current2020
2teacher12019/01/01
3teacher22019/03/01teacherdateteacherteacher
4teacher32019/05/01teacher12019/01/01teacher19 
5teacher42019/07/01teacher22019/03/01teacher20 
6teacher52019/09/01teacher32019/05/01teacher21 
7teacher62019/11/01teacher42019/07/01teacher22 
8teacher72020/01/01teacher52019/09/01  
9teacher82020/03/01teacher62019/11/01  
10teacher92020/05/01teacher72020/01/01 
11teacher102020/07/01teacher82020/03/01 
12teacher112020/09/01teacher92020/05/01 
13teacher122020/11/01teacher102020/07/01 
14teacher132021/01/01teacher112020/09/01 
15teacher142021/03/01teacher122020/11/01 
16teacher152021/05/01teacher132021/01/01 
17teacher162021/07/01teacher142021/03/01 
18teacher172021/09/01teacher152021/05/01 
19teacher182021/11/01teacher162021/07/01 
20teacher192022/01/01teacher172021/09/01 
21teacher202022/03/01teacher182021/11/01 
22teacher212022/05/01teacher192022/01/01 
23teacher222022/07/01teacher202022/03/01 
24teacher212022/05/01 
Sheet1
Cell Formulas
RangeFormula
W4W4=IFERROR(INDEX($D$4:$D$170, MATCH(0,COUNTIF($W$3:W3, IF(($W$1=YEAR($E$4:$E$170)), $D$4:$D$170, $W$3)), 0)), "")
W5:W9W5=IFERROR(INDEX($D$2:$D$170, MATCH(0,COUNTIF($W$3:W4, IF(($W$1=YEAR($B$2:$B$170)), $D$2:$D$170, $W$3)), 0)), "")
G4:G24G4=IFERROR(INDEX($A$2:$A$170, MATCH(0,COUNTIF($G$3:G3, IF(($G$1=YEAR($B$2:$B$170)), $A$2:$A$170, $G$3)), 0)), "")
Press CTRL+SHIFT+ENTER to enter array formulas.
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Hi, its an array formula - did you remember to commit it using CTRL+SHIFT+ENTER?
 
Upvote 0
Solution

Forum statistics

Threads
1,214,620
Messages
6,120,554
Members
448,970
Latest member
kennimack

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top