Loop through a column if a cell contains a specific text return value

adrix

New Member
Joined
Jun 16, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi, I have one worksheet with a lot of data and I need to copy just the numerical values of the "total" cells in another sheet. I was thinking and I thought it was a good idea to create a loop that searches the word "total" in all the column and return me the numerical value of it each time the loop finds the "total". The numerical value is 7 columns far from the "total" cell so I try to write it with the function OFFSET.
Any help will be helpful.
Thanks.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Welcome to the Board!

Since you are using Excel 365, have you given thought to using the new FILTER function?

It would return all the columns, but you could simply hide the ones you do not want to see.
 
Upvote 0

Forum statistics

Threads
1,215,734
Messages
6,126,543
Members
449,316
Latest member
sravya

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