Macros VBA solution needed for IF

Status
Not open for further replies.

shalomfern

New Member
Joined
Nov 21, 2016
Messages
6
I want to refer to any date of the data set and make the cell value move UP until cell value is equal to text or in this case "BRL"

Because "BRL" is a Row label of a Pivot table and I want VLOOKUP to look at the code assigned for BRL.
If it is text, I want excel to run the formula in
BLUE, otherwise I want excel to move up the column until it finds a text.

=IF(ISTEXT(A9); VLOOKUP('Transport Rates'!$A6; MDshowrooms!$C$5:$F$30; 4); OFFSET(A11; -1; 0; 1; 1))

but with this formular, it only moves once. it doesnt keep checking the new cell value.

I thought macros can help me to repeat but I seriously lack the coding knowledge. NEED HELP


BRL
09.01.2010
02.02.2010
14.02.2010
16.02.2010
17.03.2010
04.04.2010
07.04.2010
19.04.2010

<tbody>
</tbody>
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Status
Not open for further replies.

Forum statistics

Threads
1,214,979
Messages
6,122,551
Members
449,088
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