if cell in column has a non-specific value, the copying value to another cell.

Szucchari

New Member
Joined
Jun 3, 2019
Messages
22
Hi,

I am trying to create a time sheet and I need some help.
in column B rows 1-4, if there are any times listed I need the time to pop up in cell B7. The time is not going to be specific.
There will only be 1 cell in the column that has the time listed in it.

I thought maybe and IF function but I dont have a specific criteria so I am not sure how to do it without one.

Thank you for your assistance.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Formula in cell B7:
=IF(B1<>0,B1,IF(B2<>0,B2,IF(B3<>0,B3,IF(B4<>0,B4,""))))
 
Upvote 0
How about
=LOOKUP(2,1/(B1:B4<>""),B1:B4)

or if you can have text values in some of those cells
=LOOKUP(2,1/(ISNUMBER(B1:B4)),B1:B4)
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,867
Members
449,053
Latest member
Mesh

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