Checking Whether Cells in a Range are Blank, and returning values if it isn't

dhman08

New Member
Joined
Nov 16, 2016
Messages
18
New to the excel world and I'm baffled on how to fix this problem. Any help will be much appreciated. This is what I'm trying to do - I have a range of data which includes blank and non-blank cells. What I'm trying to do is a) For each row check to see if the cell is blank. This check will be done for every other cell starting with column A and b) if it is, I don't want anything returned, but if it isn't I'd like the value to be returned.

Ideally, what I'd like to do is perform all these checks in one cell and the value to the returned in the same cell at the end of the row. So for example, if I look at row 1, column A, E, I have values, but column C and G have no values. So I'd like the formula to essentially skip column C and E and add A, E, and I and return them as a text string in Column K.



Column ABCDEFGHIJKL
VendorPRICEVendorPRICEVendorPRICEVendorPRICEVendorPRICETotal VendorTotal PRICE
BCEI1.1AAPL5.2SPY3.3
TCON2.2UTX1.09
VNR3.2MSFT4.5
SPYG1.05VTR1.56AMGN3.2

<tbody>
</tbody>
 
Last edited:
dhman08,

Thanks for the feedback.

You are very welcome. Glad I could help.

And, come back anytime.

Are you aware of any better solution than this? Even though this will work for now, it won't work 2 weeks from now when I will have 30000 rows and 5000 columns that will not be a efficient way to do this. So I'm trying to see if there are better solution than this
 
Upvote 0

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.
I don't think VBA is the only solution. I think there's some sort of excel formula that can help me achieve my goal. I'm just not ware of that.
 
Upvote 0
See post #10 - your thread title is not really adequate for what you seem to want.
 
Upvote 0
I don't think VBA is the only solution. I think there's some sort of excel formula that can help me achieve my goal. I'm just not ware of that.

Any Excel formula will need copying down. In terms of the rest, we would need to know more about the real layout of your data. Is it always every other column that needs concatenating? You seem to know what you don't want, but aren't really making it clear what you do want, so it's quite hard to advise!
 
Last edited:
Upvote 0
Even though this will work for now, it won't work 2 weeks from now when I will have 30000 rows and 5000 columns that will not be a efficient way to do this.

dhman08,

A macro solution could work, but, if there is text in all of the Vendor columns, then, Excel will not be able to display all the text information in one cell.
 
Upvote 0
Any Excel formula will need copying down. In terms of the rest, we would need to know more about the real layout of your data. Is it always every other column that needs concatenating? You seem to know what you don't want, but aren't really making it clear what you do want, so it's quite hard to advise!

I'm aware that excel formula will need to be copied and I have no problem with that. I think there's a way to accomplish what I'm trying to do without vba. I'm just trying to find that formula. And as I've mentioned in my original post: my goal is to check whether cells in a row are empty. If a cell is empty/blank ignore that cell. If it isn't pick the text that's in that cell, do the same check for every other cell from the next cell over, and concatenate all the cells that have values.
 
Upvote 0

Forum statistics

Threads
1,215,073
Messages
6,122,970
Members
449,095
Latest member
Mr Hughes

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