find the next non blank cell above and multiply

Nico Learning

New Member
Joined
May 15, 2009
Messages
20
Hi, i hope you can help me with this one i have an excel spread see where some of my columns are blank, however i want to do some multification please see example below:
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p> </o:p>Column A1:A3 has some number, A4 is blank A5:A8 has numbers, A9:A12 is blank
<o:p> </o:p>B1:B12 has some numbers eg 10,9,36.......
<o:p> </o:p>Now in (column C) i want to multiply the data in (column A) with the data in (column B) however if there is a blank cell in (column A) then it need to find the next data above to multiply by. so if A4 is blank then it need to use A3*B4...
please bear in mind that there can be more than 1 blank cell in (column A) so if A4 and A5 is blank then it need to use A3*B4 and A3*B5...
<o:p> </o:p>Hope this makes sense
<o:p> </o:p>
Regards
nick
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Hi there,

I'd be inclined to add an intermediate column which could be hidden if required:

<html><head><title>Excel Jeanie HTML</title></head><body>
Excel Workbook
ABCD
1112112
2211222
3310330
449436
5*8432
657535
766636
875735
9*4728
10*3721
11*2714
128188
Sheet1


</body></html>

All the best :)
 
Upvote 0
Hi

Thank you very much for replying to my question, you have given an anwer that works so thank you very much, im glad that you understood my original question as you have demonstrated in you screen shot,


However is it possible to do it with out inserting another column by having all the data into 1 column filling down? the reason for this is due to the column ristriction that i currently have,

Thank you very much

Regards
Nick
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,549
Members
449,089
Latest member
davidcom

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