Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-26-2018, 09:44 PM
sakurasanta86 sakurasanta86 is offline Filling a formula down a column where only one cell value referenced changes? Windows 7 64bit Filling a formula down a column where only one cell value referenced changes? Office 2003
Novice
Filling a formula down a column where only one cell value referenced changes?
 
Join Date: Aug 2018
Posts: 1
sakurasanta86 is on a distinguished road
Default Filling a formula down a column where only one cell value referenced changes?


I have a workbook where, in Sheet 2, I have a macro setup to copy several columns of data from Sheet 1. I then need to add several more columns of data to that data. The data that will fill in the remaining columns is in Sheet 3, so the formula is this:

=IF(AK3=Sheet2!A1,Sheet2!B1,IF(AK3=Sheet2!A2,Sheet 2!B2,IF(AK3=Sheet2!A3,Sheet2!B3,"")))

Is there a way to easily copy this formula to the rest of the column where it continues to compare the value on Sheet2 in column AK, but pull information from the same places in sheet 3? Does that question make sense? I need the formula in the next row to read:

=IF(AK4=Sheet2!A1,Sheet2!B1,IF(AK4=Sheet2!A2,Sheet 2!B2,IF(AK4=Sheet2!A3,Sheet2!B3,"")))

So that the only things changed is AK3 becomes AK4. This sheet has over 1800 rows, so I don't want to have to manually do this.


----------------------
So, I have found one way to do this, that involves putting the references I am trying to bring into the sheet inside quotes, filling the function down the page, and then use Find & Replace to remove the quotes, but I still think there must be a better way.

Additionally, Maybe there is another way to do this whole operation. I'm essentially wanting to pull column B from sheet 3, when column AK in sheet 2 is equal to column A in sheet 3. Essentially: IF(AK=Sheet3 Column A) then I want Sheet 3 Column B
Reply With Quote
  #2  
Old 08-27-2018, 03:23 AM
xor xor is offline Filling a formula down a column where only one cell value referenced changes? Windows 10 Filling a formula down a column where only one cell value referenced changes? Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,097
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

What about

=IF(AK3=Sheet2!$A$1, Sheet2!$B$1,IF(AK3=Sheet2!$A$2,Sheet '2'!$B$2,IF(AK3=Sheet2!$A$3,Sheet2!$B$3,"")))
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Filling a formula down a column where only one cell value referenced changes? Filling a formula down a column where only one cell value referenced changes? takamaz Excel 2 03-11-2018 08:56 AM
formula help - value in cell looking up row and column using great than less than stefano Excel 3 10-20-2017 02:20 PM
Filling a formula down a column where only one cell value referenced changes? Entering a column value in a cell, to be used as part of a reference in a formula in another cell paulkaye Excel 4 02-26-2017 04:18 AM
Filling a formula down a column where only one cell value referenced changes? What formula can I use to find the lowest cell in a column that has a value in it? EddyWD Excel 3 04-20-2016 09:29 PM
Filling a formula down a column where only one cell value referenced changes? column of data referenced to multiple grids on another sheet zorniac Excel 1 11-15-2013 10:19 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:44 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft