H
Herald
I was making a binary converter in Excel 2007, a challange from my teacher,
and I found that using multiple IF functions inside a TEXT function I can
turn a group of cells into one data entry.
The full function is
=TEXT(IF(C8>=1,C8&D8&E8&F8&G8&H8&I8&J8&K8&L8&M8,IF(D8>=1,D8&E8&F8&G8&H8&I8&J8&K8&L8&M8,IF(E8>=1,E8&F8&G8&H8&I8&J8&K8&L8&M8,IF(F8>=1,F8&G8&H8&I8&J8&K8&L8&M8,IF(G8>=1,G8&H8&I8&J8&K8&L8&M8,IF(H8>=1,H8&I8&J8&K8&L8&M8,IF(I8>=1,I8&J8&K8&L8&M8,IF(J8>=1,J8&K8&L8&M8,IF(K8>=1,K8&L8&M8,IF(L8>=1,L8&M8,M8)))))))))),0)
The refernces refer to the 10 cells in which digits of a number can be
stored and the IFs are used to stop 0s being placed in front of the
digits>=1. I had to use all of the & signs because the TEXT function wouldn't
recognise entries such as C8:M8, and I wanted to reduce the number of IF
functions so it would save as a 2003 file.
Can anyone help?
and I found that using multiple IF functions inside a TEXT function I can
turn a group of cells into one data entry.
The full function is
=TEXT(IF(C8>=1,C8&D8&E8&F8&G8&H8&I8&J8&K8&L8&M8,IF(D8>=1,D8&E8&F8&G8&H8&I8&J8&K8&L8&M8,IF(E8>=1,E8&F8&G8&H8&I8&J8&K8&L8&M8,IF(F8>=1,F8&G8&H8&I8&J8&K8&L8&M8,IF(G8>=1,G8&H8&I8&J8&K8&L8&M8,IF(H8>=1,H8&I8&J8&K8&L8&M8,IF(I8>=1,I8&J8&K8&L8&M8,IF(J8>=1,J8&K8&L8&M8,IF(K8>=1,K8&L8&M8,IF(L8>=1,L8&M8,M8)))))))))),0)
The refernces refer to the 10 cells in which digits of a number can be
stored and the IFs are used to stop 0s being placed in front of the
digits>=1. I had to use all of the & signs because the TEXT function wouldn't
recognise entries such as C8:M8, and I wanted to reduce the number of IF
functions so it would save as a 2003 file.
Can anyone help?