Error Message on Formula returning #Value

Hawaii Movie Guy

New Member
Joined
Oct 2, 2015
Messages
1
Looking for help on a relatively simple (i thought) formula for doing two things in one cell. I have a 2 sheet workbook. On Sheet 1 i have two cells (A1 and A2) with NAMES OF EMPLOYEES in them. I want to transfer that info from Sheet 1 to Sheet 2 to let's say Cell A50 on Sheet 2 but with the following parameters: if both cells with names on Sheet 1 are blank, then Cell A50 on Sheet 2 would also remain blank. If both cells on Sheet 1 contain names, then Sheet 2 would only list the name in A1. If cell A2 is blank on Sheet 1, then Sheet 2 would list the name in A1 from Sheet 1. (hope this makes sense)

Currently i'm using the formula: =if('Sheet1'!a2<>0,'Sheet1'!a2,'Sheet1'!a1) which returns a 0 on sheet 2.

Any suggestions on getting that 0 to not appear if both a1 and a2 are blank on Sheet 1?

thanks
 

Some videos you may like

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

MARZIOTULLIO

Well-known Member
Joined
Aug 22, 2015
Messages
767
Hi

A50 =IF(AND(Sheet1!A1="",Sheet1!A2=""),"",IF(AND(Sheet1!A1<>"",Sheet1!A2<>""),Sheet1!A1,IF(Sheet1!A2="",Sheet1!A1)))
 

Watch MrExcel Video

Forum statistics

Threads
1,122,893
Messages
5,598,712
Members
414,254
Latest member
MarieCo

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
Top