Formula Creation/Formula Help

yessir

Board Regular
Joined
Jun 7, 2019
Messages
91
Is there a combination of formulas that can distinguish what is in column A, and tell me what's changed (or stayed the same) when the date changes in F and D. An example is there is an additional 1 on 6/1/2020 from 10:04(column B) to 11:00(column C) that wasn't there on 5/1/2020(column F). Any help is very much appreciated.
Capture.PNG



I've listed an example of what it might look like below. Ideally it would return what I've put in column H. Not sure how the formatting would work but more curious about how to achieve those results automatically.
ABCDEFGH
NameStart TimeEnd Time6/1/2020Total5/1/2020TotalAddition/Loss
AAA10:0411:00110,86810:04-11:00 Addition
AAA11:1912:10110,86811:19-12:10 Loss
AAA13:5114:45110,86813:51-14:45 Addition
AAA15:4016:35110,86815:40-16:35 Addition
AAA21:4722:40110,868110,86821:47-22:40 Maintained
BBB11:5312:30125,00011:53-12:30 Addition
BBB12:4513:20125,00012:45-13:20 Loss
BBB20:3121:05125,00020:31-21:05 Addition

Any help is appreciated! Thanks!
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
try putting this formula in H2 and drag it down...

=IF(D3>F3,TEXT(B3,"HH:MM")&" -"&TEXT(C3,"HH:MM")&" Addition",IF(D3<F3,TEXT(B3,"HH:MM")&" -"&TEXT(C3,"HH:MM")&" Loss",TEXT(B3,"HH:MM")&" -"&TEXT(C3,"HH:MM")&" Maintained"))
 
Upvote 0
Thanks so much for your help! @FuNeS13 . Would it be possible to have the format being something like this?
ABCDEFGH
NameStart TimeEnd Time6/1/2020Total5/1/2020TotalAddition/Loss
AAA10:0411:00110,868AAA
10:04-11:00 Addition
11:19-12:10 Loss
13:51-14:45 Addition
15:40-16:35 Addition
21:47-22:40 Maintained
AAA11:1912:10110,868
AAA13:5114:45110,868
AAA15:4016:35110,868
AAA21:4722:40110,868110,868
BBB11:5312:30125,000BBB
11:53-12:30 Addition
12:45-13:20 Loss
20:31-21:05 Addition
BBB12:4513:20125,000
BBB20:3121:05125,000

If not it's all good, I'm just wondering! Anything is appreciated.
 
Upvote 0
I'm sure it can be done, however you need a smarter mind to help you, someone like @DanteAmor or @Fluff would do it in no time...
 
Upvote 0
Would it be possible to have the format being something like this?

You could update your Account details with your office version and Platform.

With version excel 365 or 2019, you can use the TextJoin function to concatenate multiple results into one cell.
Look at the syntax:

If you don't have any of those versions then it would have to be with VBA code.

I don't have those versions, so if you want, I could help you with the code.
 
Upvote 0

Forum statistics

Threads
1,215,020
Messages
6,122,709
Members
449,093
Latest member
Mnur

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