Coping and Removing Blank cells

Tcarmouche

New Member
Joined
Oct 12, 2022
Messages
20
Office Version
  1. 2016
Platform
  1. Windows
I have 2 formulas that I need to combine into 1 can anyone help. Here’s the scenario: If Sheet1 cell P2 equals Sheet1 cell R2, copy cell B2 into Sheet2 cell A7. However when I go further down the sheet on Sheet1 (i.e. B17) I don’t want it to copy onto sheet2 in the same location as sheet1, I need it to copy one under the other (I.e. copy onto Sheet2 A7 then A8 and so on)

=IF(Sheet1.!P2=Sheet1|$R$2,Sheet11B2,"")

=IFERROR(INDEX$A$1:$A$5000,SMALL(IF($A$1:$A$5000<>"",ROW($A$1:$A$5000)-
ROW(SA$1)+1),ROW(A7))),"")
 
Did you copy the formula all the way down to row 5001? If so that's the reason.
 
Upvote 0

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
That really depends on your data, if you are only ever going to get 100 results, then copy it down to about row 200.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
Is there a way to auto sort a sheet in date order.
Ex: Column A -C will sort in date order based off of the dates in Column C.

From this:
Column AColumn BColumn C
NameRankDate
Test OneP111-Dec-22
Test ThreeP38-Jul-22
Test TwoP22-May-22

To This:
Column AColumn BColumn C
NameNameName
Test TwoP22-May-22
Test ThreeP38-Jul-22
Test OneP111-Dec-22

My true ranges on my sheet1 are A-L (Row 1 is the header) and the date data is in Column K
 
Upvote 0
As you already have a thread running for this question, you need to stick to it. Thanks
 
Upvote 0

Forum statistics

Threads
1,215,753
Messages
6,126,675
Members
449,327
Latest member
John4520

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