#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,388
Default if blank

Hi

I have four columns of data BCDE I want to combine into column A. I want to
say if column B is blank then show column C then if column C is blank then
show column D. It is important that it works in this order as thed ata refers
to dates i.e. last week, last month, last year, over a year.

Can anyone help?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,203
Default if blank

Do you just want to display the first non-blank entry and ignore all others?

The basic formula for displaying all of them would be (assuming on row 2)
=B2 & " " & C2 & " " & D2 & " " & E2
If you want to just display the first one of the four that's non-blank, post
back.

"Dave" wrote:

Hi

I have four columns of data BCDE I want to combine into column A. I want to
say if column B is blank then show column C then if column C is blank then
show column D. It is important that it works in this order as thed ata refers
to dates i.e. last week, last month, last year, over a year.

Can anyone help?

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default if blank

Hello.

This checks B, C, D then E and returns the first value, or if nothing is
found it returns nothing. (Enter into cell A1)
=IF(B2="",IF(C2="",IF(D2="",IF(E2="","",E2),D2),C2 ),B2)
--
Kevin Smith :o)


"Dave" wrote:

Hi

I have four columns of data BCDE I want to combine into column A. I want to
say if column B is blank then show column C then if column C is blank then
show column D. It is important that it works in this order as thed ata refers
to dates i.e. last week, last month, last year, over a year.

Can anyone help?

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default if blank

Perhaps something like this:
=IF(ISBLANK(B2),IF(ISBLANK(C2),IF(ISBLANK(D2),E2,D 2),C2),B2)
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Dave" wrote:

Hi

I have four columns of data BCDE I want to combine into column A. I want to
say if column B is blank then show column C then if column C is blank then
show column D. It is important that it works in this order as thed ata refers
to dates i.e. last week, last month, last year, over a year.

Can anyone help?

Thanks

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default if blank

Try the below in Row1 cell A1 and copy down. Please note that this is an
array formula. Within the cell in edit mode (F2) paste this formula and press
Ctrl+Shift+Enter to apply this formula. If successful in 'Formula Bar' you
can notice the curly braces at both ends like "{=<formula}"

=INDEX(1:1,MIN(IF(B1:E1<"",COLUMN(B1:E1))))

If this post helps click Yes
---------------
Jacob Skaria


"Dave" wrote:

Hi

I have four columns of data BCDE I want to combine into column A. I want to
say if column B is blank then show column C then if column C is blank then
show column D. It is important that it works in this order as thed ata refers
to dates i.e. last week, last month, last year, over a year.

Can anyone help?

Thanks



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 39
Default if blank

Please translate to Excel formula. Hope this will help.

=if(b<blank,b,if(c<blank,c,if(d<blank,d,"All cells are blank")))



Dave wrote:
Hi

I have four columns of data BCDE I want to combine into column A. I want to
say if column B is blank then show column C then if column C is blank then
show column D. It is important that it works in this order as thed ata refers
to dates i.e. last week, last month, last year, over a year.

Can anyone help?

Thanks


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200909/1

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default if blank

If only one cell of the four have something in them, you could use a formula
like:

=b1&c1&d1&e1
or
=b1+c1+d1+e1
(if the values are numeric)

If you could have nothing in B, but something in the remaining 3 and you want
the value in column C:

=index(b1:e1,match(true,(b1:e1<""),0))
This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it
correctly, excel will wrap curly brackets {} around your formula. (don't type
them yourself.)

If you could have all 4 cells empty, this formula will result in an error. You
could modify it to:

=if(counta(b1:e1)=0,"",index(b1:e1,match(true,(b1: e1<""),0)))
(still array entered)




Dave wrote:

Hi

I have four columns of data BCDE I want to combine into column A. I want to
say if column B is blank then show column C then if column C is blank then
show column D. It is important that it works in this order as thed ata refers
to dates i.e. last week, last month, last year, over a year.

Can anyone help?

Thanks


--

Dave Peterson
  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,388
Default if blank

Hi

Yes, I would just like to display the first non blank entry.

Thanks

"JLatham" wrote:

Do you just want to display the first non-blank entry and ignore all others?

The basic formula for displaying all of them would be (assuming on row 2)
=B2 & " " & C2 & " " & D2 & " " & E2
If you want to just display the first one of the four that's non-blank, post
back.

"Dave" wrote:

Hi

I have four columns of data BCDE I want to combine into column A. I want to
say if column B is blank then show column C then if column C is blank then
show column D. It is important that it works in this order as thed ata refers
to dates i.e. last week, last month, last year, over a year.

Can anyone help?

Thanks

  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,388
Default if blank

Thanks Kevin. This worked perfectly.

"Kevin Smith" wrote:

Hello.

This checks B, C, D then E and returns the first value, or if nothing is
found it returns nothing. (Enter into cell A1)
=IF(B2="",IF(C2="",IF(D2="",IF(E2="","",E2),D2),C2 ),B2)
--
Kevin Smith :o)


"Dave" wrote:

Hi

I have four columns of data BCDE I want to combine into column A. I want to
say if column B is blank then show column C then if column C is blank then
show column D. It is important that it works in this order as thed ata refers
to dates i.e. last week, last month, last year, over a year.

Can anyone help?

Thanks

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
conditional formatting:highlight row based on blank or non-blank c Nat Maxwell Excel Worksheet Functions 3 May 14th 23 07:43 PM
Index/match - make blank cells return a blank value. diaare Excel Worksheet Functions 3 May 3rd 23 03:44 AM
Excel 2002: Return blank when VLOOKUP on blank cells Mr. Low Excel Discussion (Misc queries) 2 June 4th 09 05:12 PM
Average Formula to display blank cell if named range is blank Rachael F Excel Worksheet Functions 3 February 22nd 08 05:05 PM
Not showing blank and non blank items in filter mode for values Bhaskar Polisetty Excel Worksheet Functions 0 June 20th 06 02:04 PM


All times are GMT +1. The time now is 01:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"