SOLVED

Xlookup or Index match

Copper Contributor

Hello, I am needing help with a formula and I just cannot get it quite right. I have tried Xlookup, Index Match, Vlookup and something is just not quite right. I have this first table on a separate worksheet within my wookbook. I am wanting to find the Sume_Earned_Value on a specific date (4/1/2022 and 4/2/2022) for each WorkCenter.

 

WorkCenter          ProdDate             Sume_Earned_Value

FBD 24/1/2022501.2568
FEB B4/1/20227523.8978
FFV 14/1/20221940.4482
FGB 14/1/20223353.3836
FGN4/1/20221894.7309
FGP 14/1/20225722.4805
FGQ 14/1/202254.2294
FBD 24/2/20221104.039
FEB B4/2/20224005.561
FFV 14/2/2022843.282
FGB 14/2/2022892.8009
FGN4/2/20225588.6512
FGP 14/2/20221070.012

 

 

Work CenterSUPVDescDate
   4/1/2022
FBD 2BAY 1985B/241B/881A/051A LENS-BEZEL ASSY 
FEB BBAY 1010B CHL AFS/HG/SPORT, LH/RH $   
FFV 1BAY 1985B/241B Base HL $   
FGB 1BAY 1985B/241B REFL B SUBASY $  
FGNBAY 1Pes sub 
FGP 1BAY 1U540 HL 
FGQ 1BAY 1214 HL 

 

Work CenterSUPVDescDate
   4/2/2022
FBD 2BAY 1985B/241B/881A/051A LENS-BEZEL ASSY 
FEB BBAY 1010B CHL AFS/HG/SPORT, LH/RH $   
FFV 1BAY 1985B/241B Base HL $   
FGB 1BAY 1985B/241B REFL B SUBASY $  
FGNBAY 1Pes sub 
FGP 1BAY 1U540 HL 
FGQ 1BAY 1214 HL 
6 Replies
You may use Sumproduct.
=Sumproduct(
(Table1[WorkCenter]="FBD 2")*(Table1[ProdDate]="4/1/2022")*
Table1[Sume_Earned_Value]
)
*Don't forget to lock the cell ref of "4/1/2022" in the formula with $ sign.
For e.g $D$2.

Hi @Tmcgrew05 

 

You seem to run Excel 2021 or 365:

Screenshot.png

in I4:

=SUMIFS(D3:D15, B3:B15,F4:F10, C3:C15,I3)

Corresponding sample attached

Hello @L z. 

 

Thank you very much. But how do I copy that down and then on to the next worksheet. So, my workbook contains 31 tabs, one for everyday, a summary tab and then my query tab with the data needed for each days earned value. How do I copy that formula down and then into each day (tab)? Could I use a VBA code to do it for me everyday since my query pulls the data everyday?

I tried your formula but I could not get it to work. I guess I didn't understand where to lock in my cell ref of D2 because I do not see it in your example. I know a lil bit about excel but still learning formulas I have not used.

Hi @Tmcgrew05 

 

how do I copy that down?

If you run Excel 2021 or 365 you don't have to copy down, the formula spills as a dynamic array

 

and then on to the next worksheet?

Without knowing your workbook difficult to say

best response confirmed by Tmcgrew05 (Copper Contributor)
Solution

@Tmcgrew05 

See the attached sample workbook.

1 best response

Accepted Solutions
best response confirmed by Tmcgrew05 (Copper Contributor)
Solution

@Tmcgrew05 

See the attached sample workbook.

View solution in original post