Copy cell format in a formula, Numbers

I have a Numbers spreadsheet with several sheets which I use to study Greek adjectives. I enter the data on the first sheet and have a cell fill colour code to help identify certain word ending types. The second sheet flips the columns from Greek to English, the other way around using a formula. The third sheet Alphabetises the same list.

I want the formula to also take the cell background format too so I don’t have to do it manually every time.

Is there a way to do this?


Thanks

curlydog

MacBook Pro Retina

Posted on Jul 31, 2019 12:39 AM

Reply
Question marked as Top-ranking reply

Posted on Aug 2, 2019 4:42 AM

Hi curlydog,


I see that my good friend Barry beat me to the reply. But here is something I prepared earlier, so here we go.

I see two separate aims:

  • Aim 1 is to automatically apply a distinct colour fill to distinguish the adjective endings;
  • Aim 2 is to sort tables according to their cell colour fill.


Aim 1: automatically apply a distinct colour fill to distinguish the adjective ending

As Barry said, use Conditional Highlighting with "text ends with".

I was not able to find a Greek font, so I used English style letters and did my best to match. Don't laugh 😀.


Here is a screenshot of some of the Conditional Highlighting rules.



Aim 2: sort tables according to their cell colour fill.

Not possible to sort on a cell format. However, we can add another column that contains values (text) which will sort the table.



enter these formulas in C2 to G2 and fill down to the end of the columns.

C2 =LEN(A2)

D2 =FIND(",",A2)

E2 = D2−2

F2 ="-"&MID(A2,D2−2,C2−D2+3)

G2 =VLOOKUP(F2,Lookup::A:B,2,0)



Now you can sort the table by Column G to bring all the colours (endings) together



Regards,

Ian.


21 replies

Jul 31, 2019 6:37 AM in response to curlydog

curlydog wrote:

I want the formula to also take the cell background format too


Not possible via formula. Are you having trouble rearranging columns via the Numbers interface? It's really easy. Just select the column and with the column selected move the cursor slightly so the column "lifts" and then drag it into the position you want.


BTW, when you say "sheet" I think you really mean table, right? Tables have cells but sheets don't. Sheets have a blank canvas on which you can place tables and other objects like text boxes and shapes.


SG


Jul 31, 2019 12:55 PM in response to SGIII

Hi SGIII,


Ok to back track then - I've just gone back to making a fresh spreadsheet and Numbers does call them sheets too. So no confusion then, I did mean Sheets and not Tables. But, yes I see you get choices as to what you can put onto a sheet in Numbers, I just happen to only be using sheets with tables on them - like Excel.

I'm trying to migrate over to Numbers, but often when sharing stuff, I have to export out to an excel spreadsheet since not everyone has a mac of course.


What you suggest doing, is what I am having to revert to, in order to make it happen. I'm trying to automate it since I have 4 Sheets with this data in different arrangements and I enter words on a daily basis. I had just hoped I could save time by automating it. But if it isn't possible then it isn't. But perhaps it would be nice if it was. So I've put in a feature request to Apple.


Thanks for your help though. I can stop searching for a way to make it so.


curlydog





Aug 3, 2019 2:14 AM in response to curlydog

Hi curlydog,


Catching up on the conversation:


I have attached the rules for the 8 categories of adjective endings.

When sorting to group the same colours together, you are actually grouping by category. If you have numbered these eight categories in a 'standard' order, it may make more sense to sort the entries by Type than by colour. That way the colour groups will be listed in the same order as on the table on which you listed the types and their assigned colours.


[I]n my spreadsheet Sheet 1 (has) a table of Gk to Eng; Sheet 2's table is Eng to Gk; Sheet 3's is A to Ω, Sheet 4's is A to Z.

Taking the table on Sheet 1 as your Main table, the only change needed in the table on Sheet 2 is to exchange the positions of the columns of Greek and English words. As no mention is made of changing the order of these two tables, I would assume a 'logical' order would be by type, which would also group them by colour.


Transferring the content of the table can be done with a simple cell reference to the same cell in the source table (eg. in A1 of the Eng-Grk table, press = to open the formula editor, then type A1

Clck the green checkmark to confirm the formula and close the editor.

Fill the formula right to the last column (where you should, when you release the mouse button, see the content of the last cell in row 1 of the Main table.

Go back to the column containing the English words. Double click the cell to open the formula Editor, Take note of the Column letter in the cell reference, then replace that reference with the column letter of the column of the Main table containing the Greek words.

Make the opposite change in the first cell in the column containing the Greek words, changing the column reference to the column of the main table containing the English words.


Select all of row 1, then fill the formula down to the last row of the table. Add rows if needed to get to the content of the last row of the Main table.


But I haven't yet found a way to automate the alphabetising to be honest. That's my next challenge.


As three of the tables are filled by copying rows of data from the table on Sheet 1, sorting the final two could prove an interesting exercise. Tables filled from other tables by formulas are inherently resistant to post transfer sorting; if the tables are sorted on values that is dependent on the position of that value on the source table, sorting the receiving table will immediately trigger a recalculation, which will return the original values in the original position in the 'resorted' table.


For this stage, my simplest suggestion is to:

  • Select all cells of the Greek to English table on Sheet 1. Copy,
  • Go to Sheet 3, and select (one click) cell A1 of the Table that i to hold the Α-Ω sort.
  • Go to the Edit menu and choose Paste Formula results
  • Sort the table on the Greek column.


Repeat with the English to Greek table on Sheet 2

  • Select all cells on the source table. Copy.
  • Select cell A1 of the table on Sheet 4
  • Edit > Paste Formula Results
  • Sort the table on the English column.


ALL content editing will be done on the Main table, on Sheet 1.

You will need to add rows to the table on Sheet 2 to match the number of rows in the Main table.

The tables on Sheets 3 and 4 will automatically expand to include as many rows of data (and headings) as are present in the table that the data has been pasted from,


Finally I want to use the colours to pull the words into their correct groups, in another table in another Sheet.


Since each colour matches a specific Type number, grouping by colour is equivalent to grouping by Type number. do this grouping by sorting on type number.


Regards,

Barry

Aug 3, 2019 9:47 AM in response to Barry

Hi Barry,


In my first explanation I didn't actually say much about the first sheet where I enter the data. It actually isn't random. The list is constantly evolving and I'm now up to about 600 adjectives which, where possible, have been manually grouped by meaning and opposites eg. fat/thin, light/dark or all the adjectives that mean "sad" etc. So whenever I add a new one, I insert a new row.

The second sheet is automated to deal with this insertion and it also flips the columns using this formula:


Regarding the Alphabetising - I currently do exactly what you suggest. ie copy over and sort it manually using the sort feature at the top of each column. I had just hoped I could automate it somehow. No worries.


I suppose regarding a new Sheet that puts them into their categories - leaving the colours there just for catching ones attention rather than sorting - I could add a new column in the first Sheet that allows me to allocate a number as to which category the new addition fits into. Then maybe I could pull each of these categories into their own sheet or table.....I'm just thinking aloud here. Not thought how exactly I would do this as yet.


Thank you for thinking about this query. Much appreciated.


curlydog

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Copy cell format in a formula, Numbers

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.