Solved

to return data from two cells in excel

Posted on 2013-01-03
13
234 Views
Last Modified: 2013-09-21
I have two cells in excel with text in one and the other is blank, i want to say if h2 cell is blank return K2 cell text and other way round too
0
Comment
Question by:tinatoms
  • 5
  • 4
  • 2
13 Comments
 
LVL 48

Expert Comment

by:jpaulino
ID: 38739521
Can you explain it better?
0
 
LVL 23

Expert Comment

by:Michael74
ID: 38739527
This formula should give you what you are after
=IF(AND(ISBLANK(H2),ISBLANK(K2)),"",IF(ISBLANK(H2),K2,H2))

Open in new window


Michael
0
 

Author Comment

by:tinatoms
ID: 38739555
ok lets use A & B Cells

I have Australia in A and B is Blank so in Cell C i want it to show Austrailia

But if there is text in A & B i want to only return B text
0
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 

Author Comment

by:tinatoms
ID: 38739565
thanks Michael, but where cell H is blank and J has something it leaves it blank still
0
 
LVL 48

Expert Comment

by:jpaulino
ID: 38739569
But you want to fill the cell H if it's blank with the values of the cell J?
0
 

Author Comment

by:tinatoms
ID: 38739577
no ok right i have might have text in H or J  then in other cell i want to return either whats in J or if blank whats in H
0
 
LVL 48

Accepted Solution

by:
jpaulino earned 500 total points
ID: 38739582
If I understood you could do that using a formula:

=IF(J1<>"";J1;H1)

It checks if the value in J1 is not empty and it shows the J1 or the H1. You could repeate that for several rows.
0
 

Author Comment

by:tinatoms
ID: 38739618
Jpaulino it doesnt like that think its the ""
0
 
LVL 48

Expert Comment

by:jpaulino
ID: 38739630
Check the example
Book1.xlsx
0
 
LVL 23

Expert Comment

by:Michael74
ID: 38739658
tinatoms

My formula looks at cells H2 and K2 as per the original question. It also allows for both cells to be empty

Michael
0
 

Author Comment

by:tinatoms
ID: 38739673
Jpaulino many thanks all working now
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lync meeting or Lync conferencing is what many organizations would like to deploy to allow them save money. But companies are now giving up for various reasons, one of which is that they cannot join external meetings (non-federated company meetings)…
User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question