copying adjacent cells based on value of referenced cell

jbrown021286

Board Regular
Joined
Mar 13, 2023
Messages
74
Office Version
  1. 365
Platform
  1. Windows
table 1
Jeffs Tech Flag Sheet.xlsx
ABCDEFGH
1Tech Flag Sheet 26-Jun
2Tech Name and employee numberJeffrey Brown 101502
3Tag/RO NumberSold HoursDateAdvisor
4  
5  
6  
7  
8  
9  
10  
11  
12  
6.26 (2)
Cell Formulas
RangeFormula
B4:B12B4=RIGHT(A4,8)
D4:D12D4=IF(B4<>"",IF(D4="",TODAY(),D4),"")

table 2
hours log.xlsx
ABCDEFGHIJKLM
16/26/2024
2DaydatenotesColumn2ROstatusSUMDaignosisCODEJOBFLAG TIMEADJUSTMENT
3Monday6/24/20242HKRS3H46RH325200X40230.5ocrOil Change Rotate0.5
4Monday6/24/20242HKRS3H46RH325200X40230.31t1 tire0.3
5Monday6/24/20242HKRS3H46RH325200X40231.0aAlignment1
6Tuesday6/25/20241hgcr3f00ga004115X50450.5ocrOil Change Rotate0.5
7Tuesday6/25/20241hgcr3f00ga004115X50451.5fbjfront brakes1.5
8Tuesday6/25/20241hgcr3f00ga004115X50450.5tsTrans service0.5
9Tuesday6/25/20241hgcr3f00ga004115X50450.1afair filter0.1
10Tuesday6/25/20241hgcr3f00ga004115X50450.2cfcabin filter0.2
11Tuesday6/25/20241hgcr3f00ga004115X50452.0frunt studs  2
12Wednesday6/26/2024 stuckyX1hgcr2f86ga0947571.0dDiag1
13Wednesday6/26/2024tarranceXshhfk7h69lu2233731.0dDiag1
14      
15      
16      
17      
18      
19      
20      
21      
22      
23      
24      
Log
Cell Formulas
RangeFormula
A1A1=TODAY()
B3:B24B3=IFERROR(TEXT(WEEKDAY($C3),"Dddd"),"")
C3:C24C3=IF([@RO]<>"",IF(C3="",TODAY(),C3),"")
K3:K24K3=IF(J3="","",INDEX($AB$3:$AB$91,MATCH(J3,$AA$3:$AA$91,0),1))
L3:L24L3=IF(K3="","",INDEX($AC$3:$AC$91,MATCH(J3,$AA$3:$AA$91,0),1))
E3:E24E3=IF(OR(AND(F3="",G3=""),AND(F3<>"",G3="G")),"",IF(AND(F3<>"",G3="GN"),"",IF(AND(F3<>"",G3=""),"X","***")))
H3:H24H3=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G3:G280Cell Value=$P$38textNO
M22:M52,F91:F280,F30:F32,F34:F88,F3:F26Expression=COUNTIF(X:X,F3)>0textNO
E3:E26,E30:E280Expression=(E3="x")*(C3=$A$1)textNO
E3:E26,E30:E280Expression=(E3="")*(F3<>"")textNO
E3:E26,E30:E280Expression=(E3="x")*(F3<>"")textNO
G3:G88,G91:G280,I5:I8Cell Value=$P$43textNO
G3:G88,I5:I8,G91:G280Cell Value=$P$42textNO
G3:H4,G4:G25,H5:I8,G91:H280,H9,G10:H88Cell Value=$P$41textNO
H91:H280,H3:H88Expression=" =COUNTIFS(D:D,A1,E:E,J2)>0"textNO
H91:H280,H3:H88Expression=COUNTIFS(X:X,F3,Y:Y,H3)>0textNO
G3:H4,H5:I8,H9,G91:H280,G4:G25,G10:H88Cell Value=$P$40textNO
G3:H4,G4:G25,H5:I8,H9,G91:H280,G10:H88Cell Value=$P$39textNO
G3:H4,G4:G25,H5:I8,H9,G91:H280,G10:H88Cell Value=$P$37textNO
G3:H4,G4:G25,H5:I8,H9,G91:H280,G10:H88Cell Value=$P$36textNO
I19Cell Value=$P$42textNO
I19Cell Value=$P$41textNO
I19Cell Value=$P$40textNO
I19Cell Value=$P$39textNO
I19Cell Value=$P$37textNO
I19Cell Value=$P$36textNO
M3:O5Expression=COUNTIFS(XFB:XFB,L3,XFD:XFD,M3)>0textNO

i need to fill column A in table 1 with cells from column F in table 2 if the adjacent cells in column C of table 2 are equal to H1 in table 1. any help would be appreciated.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Pls check whether this works

A4= filter(log!f3:f13,log!c3:c13=h1)

Also, please check whether circular reference is appearing in some formulae you had given eg:
D4=IF(B4<>"",IF(D4="",TODAY(),D4),"")
 
Upvote 0
Pls check whether this works

A4= filter(log!f3:f13,log!c3:c13=h1)

Also, please check whether circular reference is appearing in some formulae you had given eg:
D4=IF(B4<>"",IF(D4="",TODAY(),D4),"")
That got it thanks. and the circular reference formulas are on purpose. i use them to make timestamps. if you have a better way to achieve this, please let me know
 
Upvote 0
Hi

To avoid circular reference
-For the first sheet (6.26(2)), you may use =$H$1 to copy 26 Jun 2024 across column H
-For the 'log' sheet, you may have to add a helper column which takes from column C
Eg: P3=IF([@RO]<>"",IF(C3="",TODAY(),C3),"")

The earlier formula would have to be referenced to column P in that case A4= filter(log!f3:f13,log!p3:p13=h1)
 
Upvote 0
Due to some reason, a smiley has come up in place of : p

Please read the last part as A4= filter(log!f3: f13,log!p3: p13=h1)

Also, thanks for letting know that it worked
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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