Return the last updated value with the cell formatting

msantosh1220

New Member
Joined
Jul 3, 2018
Messages
5
Dear Excel friend,

I need your help in finding the last value updated along with the cell formatting.

I have a table with some country listing in A column and currency amount in the next column
The amount columns are formatted on currency as per the country code

ISO01-Jan-1802-Feb-1803-Mar-1801-Apr-18
USAUSD 25.00USD 300.00USD 230.00USD 180.00
CANADA USD 160.00 CAD 120.00
UKEUR 120.00GBP 125.00GBP 200.00
FRANCEEUR 120.00EUR 130.00EUR 145.00

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>

I am looking for a formula which will return the last value and keep the currency formatting.


Note: Canada and UK has few blanks and two different currency code, the formula has to pick the last currency formatting that is CAD and GBP.



Thanking you in Advance

Regards
msantosh1220
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Sorry as I did not provide sufficient information of what I was looking form above data


I would like to have a function that give the last updated value along with formatting for each row, as in below case


ISO01-Jan-1802-Feb-1803-Mar-1801-Apr-18Output_last value
USAUSD 25.00USD 150.00USD 150.00
CANADAUSD 160.00CAD 120.00CAD 120.00
UKEUR 120.00EUR 125.00GBP 200.00GBP 200.00
FRANCEEUR 120.00EUR 130.00EUR 145.00EUR 145.00

<colgroup><col><col><col><col><col><col></colgroup><tbody>
</tbody>


"Output_last value" column should return the last updated value along with cell formatting

I have tried using =Lookup(9e+10,B2:E2), this formula gives me last updated column but does not provide the cell formatting.

I was looking for a formula that will fetch me both the value and cell formatting.
Looking forward for your assistance on the above.

Regards
msantosh1220
 
Upvote 0
Formulas cannot read cell formats, well not properly, you can use CELL("format",cell reference) but it will only read the type of data, General, Number, etc and even then it's very limited.
You can't read bold, colour, italics etc
You need VBA to read the full format of a cell, especially colour.
 
Upvote 0

Forum statistics

Threads
1,215,047
Messages
6,122,858
Members
449,096
Latest member
Erald

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