Solved

Need an if statement that looks at the next column after seeing an x in current column

Posted on 2013-01-24
2
240 Views
Last Modified: 2013-01-24
I have a file with columns A through AQ. Each column has 51 rows.  I am trying to transfer all of the information in across columns A through AQ, down column A.

I put an X in the 51st row of each column, but I can't figure out how to make a formula that reads the X and then goes to the top of the next column.

Thanks!
0
Comment
Question by:Dominator1025
2 Comments
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
Comment Utility
Try this formula in A52 filled down -

=INDEX(B$1:AQ$51,MOD(ROWS(A$52:A52)-1,51)+1,INT((ROWS(A$52:A52)-1)/51)+1)

You will get all the data from the other columns down to row 51

if you don't want the "x"s in row 51 then start at A51 and use this version:

=INDEX(B$1:AQ$50,MOD(ROWS(A$51:A51)-1,50)+1,INT((ROWS(A$51:A51)-1)/50)+1)

regards, barry
0
 

Author Closing Comment

by:Dominator1025
Comment Utility
Awesome, thanks!

One more question about adding a header in column B next to the data we just put in column A, will post shortly.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now