How to search cells that are blank and copy the last cell above

shegre

New Member
Joined
Aug 11, 2011
Messages
8
What formula can I use that searches through an array of cells and checks if the cell is empty or not. If the cell is not empty it returns the value in that cell. If the cell is empty it copies the cell above it that is not empty.

The first cell that is checked will never be empty.
 
I am trying to build a report in excel for each agent that requires data from another worksheet.

I need a formula that checks if the agent ID is equal to 1341, and if the agent name is equal to Agent 1, and if a call code is equal to 0 in Report 2. If all these are true, then copy the total time in column F of Report 2 to column E, row 2.

I thought I would try and explain what I am ultimately trying to accomplish to see if there is a better way than the way I was originally trying.
 
Upvote 0

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
I am trying to build a report in excel for each agent that requires data from another worksheet.

I need a formula that checks if the agent ID is equal to 1341, and if the agent name is equal to Agent 1, and if a call code is equal to 0 in Report 2. If all these are true, then copy the total time in column F of Report 2 to column E, row 2.

I thought I would try and explain what I am ultimately trying to accomplish to see if there is a better way than the way I was originally trying.
I think I may be following you on this.

However, the format of your report #2 is not conducive to easy data extraction.

If you could fill in the empty cells for the ID# and the agent name so that it's like a flat file database then what you want to do should be fairly easy.

Book1
ABCDEFG
21341Agent 1177:15:152Break10:00:42
31341Agent 1177:15:150No Reason Code10434:53:02
41342Agent 20:18:530No Reason Code10:00:07
51343Agent 3148:42:484Meeting / Con. Call10:00:04
61343Agent 3148:42:482Break20:03:13
71343Agent 3148:42:483Coordinating / Dispatching10:00:04
81343Agent 3148:42:480No Reason Code93110:04:50
91343Agent 3148:42:486Project10:00:04
101343Agent 3148:42:481Finishing Call10:00:05
111343Agent 3148:42:485Voicemail / Email10:00:03
121346Agent 4167:32:242Break10:59:40
131346Agent 4167:32:240No Reason Code9926:26:50
141349Agent 535:09:460No Reason Code266:59:52
Sheet1
 
Upvote 0
That is what lead me to my original question of how to search those empty fields and copy the cell above it to fill in the blanks.
 
Upvote 0
That worked, thank you so much! I will be submitting another post on how to copy some of the data from report 2 to report 1 as I am still struggling with that part.
 
Upvote 0

Forum statistics

Threads
1,224,548
Messages
6,179,445
Members
452,915
Latest member
hannnahheileen

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