Quantcast
Channel: Active questions tagged worksheet-function - Super User
Viewing all articles
Browse latest Browse all 929

How to use if statement to merge cells depending on selected value

$
0
0

I am a photographer and I want to create a weekly time sheet for my photo shoot bookings. Some sessions are 1 hour long, some are 2 hours, 4 hours... etc. So I created a table and a dropdown list including all my photo shoot packs (the list is in a separate sheet).

Screenshot of the table

As you can see, since each row represents 1 hour, I want to merge the cells with the sessions that are longer than 1 hour. For example, Pack #2 is 2 hours long. When I select it, I want to merge it with the cell below so 2 rows (2 hours) are booked for this session.

Example of how I want it to be:

Screenshot of how I want it to be

Also, I am struggling to assign a numerical value inside each photo shoot pack so I can use a SUM() function to return the total earning per day and week. For example, when Pack #1 is selected, I want the cell to have a value of $125.

I do not know if that's possible.


Viewing all articles
Browse latest Browse all 929

Trending Articles