Formula Help!

lmciciosr84

New Member
Joined
Mar 4, 2020
Messages
27
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I need formula help! In the chart below I need a formula that will look at the information and display them in numerical order and ignore the blanks. So example would be if B2=1 then F2=1 and if C2 is blank but D2 is 1 than G2=1. I want them to line up in order with FGH but be able to shift if one of the BCD cells is blank. I hope I explained that well enough and any help is appreciated!

this1.png
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
ideally this list would be long consisting of at least 12 different accounts types.
 
Upvote 0
Thats great exactly what I'm looking for, one more question what if there are other cells I dont want to be in the equation in between example

B
 

Attachments

  • thi4235.png
    thi4235.png
    6 KB · Views: 8
Upvote 0
=SORT(FILTER(B2:J2,(B2:J2<>"")*(MOD(COLUMN(B2:J2)-COLUMN(A1),3)=1)),,1,1)
 
Upvote 0
Based on your image, another option is to use what is unique about the headers for the columns of interest. This approach has the advantage that if other columns are inserted (eg AMOUNT1, AMOUNT 2 etc) then this formula will automatically adjust to still just pick up the 'TYPE' columns.

Excel Formula:
=SORT(FILTER(B2:J2,(B2:J2<>"")*(LEFT(B$1:J$1,4)="TYPE"),""))
 
Upvote 0

Forum statistics

Threads
1,215,071
Messages
6,122,964
Members
449,094
Latest member
Anshu121

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