Excell function/formula to copy from once cell to another if a Yes is contained in a certain cell

JJDelport

New Member
Joined
Dec 22, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone.

hope you well. i have a question and cant seem to get it right anyway.

I have got cell A 15:16 which if cell a16 Contains Yes then the entered data in cell D13:I14 will copy to cellD15:I16

If someone can help with with a solution I will appreciate it.

Thank you.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
i have just used a nested IF
you can just apply a range - BUT it will copy 0 where blank

as you have 365 - I suspect there is a better way to do it using arrays - i cant seem to get the copy to be blank if original cell blank - i get 0

so
in D15
=IF($A$16="yes",IF(D13="","",D13),"")
copy across and down

Book6
ABCDEFGHIJK
1
2
3
4
5
6
7
8
9
10
11
12
131234
14abb
151234    
16yes  abb   
17
18
19
Sheet2
Cell Formulas
RangeFormula
D15:K16D15=IF($A$16="yes",IF(D13="","",D13),"")
 
Upvote 0

Forum statistics

Threads
1,214,878
Messages
6,122,062
Members
449,064
Latest member
scottdog129

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