Choosecols formula but need intervals with it.

mabubakerali

New Member
Joined
Feb 23, 2016
Messages
37
In the following Screenshot, i am using the choosecols formula in E6, And i am displaying three columns from another sheet in it, but what i want is thats the values in H column should be Displayed in column i, and i want choosecols formula which is in E6 to skip the column H in this sheet and display the results which are being displayed in H in to column i. Is there anyway with this chooscols formula to do it?
 

Attachments

  • Screenshot 2024-10-26 152724.png
    Screenshot 2024-10-26 152724.png
    47.1 KB · Views: 8

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Hello, an easier bypass would probably be to select the data including the first empty column and then refer to it within CHOOSECOLS, i.e. something like

=CHOOSECOLS(1,2,3,10,4)

where 10 would be the number of a column with empty cells.
 
Upvote 0
Solution
Hello, an easier bypass would probably be to select the data including the first empty column and then refer to it within CHOOSECOLS, i.e. something like

=CHOOSECOLS(1,2,3,10,4)

where 10 would be the number of a column with empty cells.
Yup ,Currently I am doing this way, but i trying to find a better solution though. Thanks
 
Upvote 0
i.e. something like

=CHOOSECOLS(1,2,3,10,4)

where 10 would be the number of a column with empty cells.
If the extra column was empty cells, wouldn't that show up as a column of zeros (unless that extra column was filled with null strings)?

24 10 26.xlsm
EFGHIJKLMNOPQRSTUVW
5AmountCustContactEmailRef
6519052029519052299042858075
7907962056907962561291288379
8703046038703046381278517789
910958707810958778628137248
10392043073920437511926628
119026500189026501853394297
12536011035360113105121648
13855711044855711442314871677
1499756508999756589308223334
15866370058663705855581529
Choosecols
Cell Formulas
RangeFormula
E6:I15E6=CHOOSECOLS(N6:W15,1,2,3,10,4)
Dynamic array formulas.


In any case I suspect that may not be an acceptable solution as I presume the Email column is wanted blank so that email addresses can be added later. If that was done on this sheet then the CHOOSECIOLS formula will turn into a #SPILL! error


Yup ,Currently I am doing this way,
Are you really? If so do you have a column of zeros like my example? .. or a column of blanks - unlike your image?

Are you intending to fill the email column in the sheet this formula is on? or would you be filling another column on the other sheet for emails?
 
Upvote 0
If the extra column was empty cells, wouldn't that show up as a column of zeros (unless that extra column was filled with null strings)?

24 10 26.xlsm
EFGHIJKLMNOPQRSTUVW
5AmountCustContactEmailRef
6519052029519052299042858075
7907962056907962561291288379
8703046038703046381278517789
910958707810958778628137248
10392043073920437511926628
119026500189026501853394297
12536011035360113105121648
13855711044855711442314871677
1499756508999756589308223334
15866370058663705855581529
Choosecols
Cell Formulas
RangeFormula
E6:I15E6=CHOOSECOLS(N6:W15,1,2,3,10,4)
Dynamic array formulas.


In any case I suspect that may not be an acceptable solution as I presume the Email column is wanted blank so that email addresses can be added later. If that was done on this sheet then the CHOOSECIOLS formula will turn into a #SPILL! error



Are you really? If so do you have a column of zeros like my example? .. or a column of blanks - unlike your image?

Are you intending to fill the email column in the sheet this formula is on? or would you be filling another column on the other sheet for emails?
Simply go to Advance options of the worksheet and select "Display Nothing with cells Having zero" and column of zeroes will be gone
 
Upvote 0
Simply go to Advance options of the worksheet and select "Display Nothing with cells Having zero" and column of zeroes will be gone
.. as would any other cells in the worksheet containing zeros. Perhaps you don't have any of those, but what about my other question?

Are you intending to fill the email column in the sheet this formula is on? or would you be filling another column on the other sheet for emails?
Having a column of empty-looking cells from a formula like this would not allow you to actually use those cells directly on the worksheet for anything else without causing a spill error.
 
Upvote 0
You didn't actually answer my first question to you either
Are you really? If so do you have a column of zeros like my example? .. or a column of blanks - unlike your image?
If you were already doing what had been suggested then you would not have needed to be asking how to move the data from column H to column I and we would have been able to see in your image the apparently empty column of (hidden) zero values. ;)
 
Upvote 0

Forum statistics

Threads
1,224,883
Messages
6,181,551
Members
453,052
Latest member
ezzat

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