Look up and add 1

ads_1471

Board Regular
Joined
Apr 19, 2016
Messages
58
Hi

After some help on a formula please which will make life so much easier.

What I am after is when a word is put into 1 column it will use this then to add 1 hour onto the hours on the same row.

Example below of table.

Basically when AL example is entered into Column F2 it then takes the hours from E2 and moved to G2 adding 1 hour on. then same with any entries below.

DateIncomeTime inTime OutHoursLocationTotal Hour + 1
2/8/22Coach11:0013:002AL Example3
5/8/22Coach10:0013:003AL Example4
 
Sorry, that didn't work. When hitting enter, it just came back with 2 hours, which was in the hour's field.

Basically anytime AL Example is in the CEL it should add 1 hour in the end column, If it has another word in then it should just be blank

Time InTime OutTotal HoursLocationhours used + 1
11:30​
12:30​
1​
AL SnookerShould be 2
13:00​
15:00​
2​
WalesBlank
13:00​
15:00​
2​
AL SnookerShould be 3
13:00​
15:00​
2​
MAnchesterBlank
13:00​
15:00​
2​
VenueBlank
Can you try without the space...
If(f2<>"",e2+1," ")
 
Upvote 0

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
How about
Excel Formula:
=IF(LEFT(F2,3)="AL ",E2+1,"")
 
Upvote 0
Give the macro I suggested a try. Once you copy it into the sheet code module as I explained, you don't have to worry about extending the formula to other cells.
 
Upvote 0

Forum statistics

Threads
1,223,949
Messages
6,175,581
Members
452,653
Latest member
craigje92

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