ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   If formula (https://www.excelbanter.com/excel-worksheet-functions/257059-if-formula.html)

Horacio[_4_]

If formula
 
I´m tray to make a formula in column B1 that when I introduce data in
column A1 give me 1 and when I introduce data in A2 give me 2 in
column B2

A1 B1
15 1
25 2
30 3
30 4

Thank you

Horacio

T. Valko

If formula
 
Enter this formula in B1 and copy down as needed:

=IF(A1="","",COUNTA(A$1:A1))

--
Biff
Microsoft Excel MVP


"Horacio" wrote in message
...
I´m tray to make a formula in column B1 that when I introduce data in
column A1 give me 1 and when I introduce data in A2 give me 2 in
column B2

A1 B1
15 1
25 2
30 3
30 4

Thank you

Horacio



TomPl

If formula
 
=IF(ISBLANK(A1),ROW(),"")

"Horacio" wrote:

I´m tray to make a formula in column B1 that when I introduce data in
column A1 give me 1 and when I introduce data in A2 give me 2 in
column B2

A1 B1
15 1
25 2
30 3
30 4

Thank you

Horacio
.


TomPl

If formula
 
Oops, it should be like this:

=IF(ISBLANK(A1),"",ROW())

"Horacio" wrote:

I´m tray to make a formula in column B1 that when I introduce data in
column A1 give me 1 and when I introduce data in A2 give me 2 in
column B2

A1 B1
15 1
25 2
30 3
30 4

Thank you

Horacio
.


Horacio[_4_]

If formula
 
On 23 Fev, 00:57, tompl wrote:
Oops, it should be like this:

=IF(ISBLANK(A1),"",ROW())



"Horacio" wrote:
I´m tray to make a formula in column B1 that when I introduce data in
column A1 give me 1 and when I introduce data in A2 give me 2 in
column B2


A1 * *B1
15 * * 1
25 * * 2
30 * * 3
30 * * 4


Thank you


Horacio
.

Thank you
Works perfect

Horacio


All times are GMT +1. The time now is 02:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com