Auto-Fill and Copy when it is required

shannyD

New Member
Joined
Apr 2, 2021
Messages
2
Office Version
  1. 2010
Platform
  1. Windows
Hi,

I am looking for a formula that if Column AA has Required in it, then column AJ and AK need to be auto-fill with "1" and "2".

As well, if Column AC has Required then column AT needs to copy what is in Column K.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Welcome to the board!

Let's say that we are talking about row 2.

Then put this formula in cell AJ2:
Excel Formula:
=IF(AA2="Required",1,"")

Put this formula in cell AK2:
Excel Formula:
=IF(AA2="Required",2,"")

And put this formula in cell AT2:
Excel Formula:
=IF(AC2="Required",K2,"")
 
Upvote 0
Thanks for the formula. Unfortunately I used 1 and 2 as a placeholder.

The formula is not working for me because I tried to replace 1 with NR01. Instead of actually putting "NR01" it trying to put value that is in box NR01.

Is there a solution to this?
 
Upvote 0
Thanks for the formula. Unfortunately I used 1 and 2 as a placeholder.

The formula is not working for me because I tried to replace 1 with NR01. Instead of actually putting "NR01" it trying to put value that is in box NR01.
In Excel, it is important to understand that anything enclosed in double-quotes is treated as literal text.

So if you have:
Excel Formula:
=IF(AA2="Required","NR01","")
it will return the literal text of "NR01".

If you want to return the value from cell NR01, leave the quotes off (just like we did for the K2 formula in my previous post), i.e.
Excel Formula:
=IF(AA2="Required",NR01,"")
 
Upvote 0

Forum statistics

Threads
1,215,350
Messages
6,124,439
Members
449,160
Latest member
nikijon

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