A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Looking at multiple cells



 
 
Thread Tools Display Modes
  #1  
Old May 13th, 2010, 04:49 PM posted to microsoft.public.excel.misc
Jim
external usenet poster
 
Posts: 1,404
Default Looking at multiple cells

Hello,

I would like to reference a cell for data, however if that cell is blenk
then look at the next cell, etc. For example:

In P1 I would like to reference cell F1, but if E1 is blank then the formula
looks at D1, and if D1 is blank I would like to look at C1, if C1 is blank I
would like to look at B1, and if B1 is blank I would like to populate P1 with
the data from A1. A1 will always have data, but the other cells may be blank.

Thanks in advance for the help.
Jim
  #2  
Old May 13th, 2010, 05:10 PM posted to microsoft.public.excel.misc
MS-Exl-Learner
external usenet poster
 
Posts: 135
Default Looking at multiple cells

If your A1 to F1 data is Numbers then use the below formula. Copy and paste
the below formula in P1 cell.
=LOOKUP(10^10,A1:F1,A1:F1)

If your A1 to F1 data is BOTH NUMBERS AND TEXTS OR TEXT then use the below
formula. Copy and paste the below formula in P1 cell.
=INDEX(A1:F1,MAX(COLUMN(A1:F1)*(A1:F1"")))
It is an array formula so it requires Cntrl+Shift+Enter. After pasting the
above formula in P1 cell place the cursor in P1 cell and press F2 and hit
Cntrl+Shift+Enter. Now in formula bar the formula will be surrounded by the
curly braces after hitting the Cntrl+Shift+Enter. General enter won’t work.

Remember to Click Yes, if this post helps!

--------------------
(Ms-Exl-Learner)
--------------------


"Jim" wrote:

Hello,

I would like to reference a cell for data, however if that cell is blenk
then look at the next cell, etc. For example:

In P1 I would like to reference cell F1, but if E1 is blank then the formula
looks at D1, and if D1 is blank I would like to look at C1, if C1 is blank I
would like to look at B1, and if B1 is blank I would like to populate P1 with
the data from A1. A1 will always have data, but the other cells may be blank.

Thanks in advance for the help.
Jim

  #3  
Old May 13th, 2010, 05:40 PM posted to microsoft.public.excel.misc
Jim
external usenet poster
 
Posts: 1,404
Default Looking at multiple cells

Perfect - thanks!!!

"Ms-Exl-Learner" wrote:

If your A1 to F1 data is Numbers then use the below formula. Copy and paste
the below formula in P1 cell.
=LOOKUP(10^10,A1:F1,A1:F1)

If your A1 to F1 data is BOTH NUMBERS AND TEXTS OR TEXT then use the below
formula. Copy and paste the below formula in P1 cell.
=INDEX(A1:F1,MAX(COLUMN(A1:F1)*(A1:F1"")))
It is an array formula so it requires Cntrl+Shift+Enter. After pasting the
above formula in P1 cell place the cursor in P1 cell and press F2 and hit
Cntrl+Shift+Enter. Now in formula bar the formula will be surrounded by the
curly braces after hitting the Cntrl+Shift+Enter. General enter won’t work.

Remember to Click Yes, if this post helps!

--------------------
(Ms-Exl-Learner)
--------------------


"Jim" wrote:

Hello,

I would like to reference a cell for data, however if that cell is blenk
then look at the next cell, etc. For example:

In P1 I would like to reference cell F1, but if E1 is blank then the formula
looks at D1, and if D1 is blank I would like to look at C1, if C1 is blank I
would like to look at B1, and if B1 is blank I would like to populate P1 with
the data from A1. A1 will always have data, but the other cells may be blank.

Thanks in advance for the help.
Jim

  #4  
Old May 13th, 2010, 05:47 PM posted to microsoft.public.excel.misc
MS-Exl-Learner
external usenet poster
 
Posts: 135
Default Looking at multiple cells

You are welcome and thanks for feeding back.

--------------------
(Ms-Exl-Learner)
--------------------


"Jim" wrote:

Perfect - thanks!!!

"Ms-Exl-Learner" wrote:

If your A1 to F1 data is Numbers then use the below formula. Copy and paste
the below formula in P1 cell.
=LOOKUP(10^10,A1:F1,A1:F1)

If your A1 to F1 data is BOTH NUMBERS AND TEXTS OR TEXT then use the below
formula. Copy and paste the below formula in P1 cell.
=INDEX(A1:F1,MAX(COLUMN(A1:F1)*(A1:F1"")))
It is an array formula so it requires Cntrl+Shift+Enter. After pasting the
above formula in P1 cell place the cursor in P1 cell and press F2 and hit
Cntrl+Shift+Enter. Now in formula bar the formula will be surrounded by the
curly braces after hitting the Cntrl+Shift+Enter. General enter won’t work.

Remember to Click Yes, if this post helps!

--------------------
(Ms-Exl-Learner)
--------------------


"Jim" wrote:

Hello,

I would like to reference a cell for data, however if that cell is blenk
then look at the next cell, etc. For example:

In P1 I would like to reference cell F1, but if E1 is blank then the formula
looks at D1, and if D1 is blank I would like to look at C1, if C1 is blank I
would like to look at B1, and if B1 is blank I would like to populate P1 with
the data from A1. A1 will always have data, but the other cells may be blank.

Thanks in advance for the help.
Jim

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:55 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.