Help needed in finding a correct formula.

kerry9439

New Member
Joined
Nov 14, 2020
Messages
6
Office Version
  1. 2010
Platform
  1. Windows
Hi Everyone,
I am using excel at work (I work in a maternity department at my local hospital) and need to find a formula that as i input my data, excel would automatically put my patients names and EDD (Estimated Delivery Date) on another sheet in the same workbook and then work out a date when each patient will be 36 weeks.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Show us a sample worksheet (anonymized) with 6-8 patients. Show us what you have and then what you expect for a mocked up solution so that we can provide you with a specific solution. Please use XL2BB as described in my signature to upload the data.
 
Upvote 0
Show us a sample worksheet (anonymized) with 6-8 patients. Show us what you have and then what you expect for a mocked up solution so that we can provide you with a specific solution. Please use XL2BB as described in my signature to upload the data.
GDM Database Example.xlsx
A
8
GDM Database

GDM Database Example.xlsx
C
12
36 Week List


So I would need the names from the Name column and the dates from the EDD Column of the patients on the "GDM Database sheet" to automatically copy over onto the "36 week List" that is on the same workbook and to continue to copy their name and edd's to the "36 week List" when i add new patients. But i would also like excel to work out the date that each patient will be 36 weeks and also do this automatically every time i add a patient on the "GDM Database Sheet"
Hope this Makes sense.
Thank You
Kerry
 
Upvote 0
Show us a sample worksheet (anonymized) with 6-8 patients. Show us what you have and then what you expect for a mocked up solution so that we can provide you with a specific solution. Please use XL2BB as described in my signature to upload the data.
GDM Database Example.xlsx
A
8
GDM Database

GDM Database Example.xlsx
C
12
36 Week List


So I would need the names from the Name column and the dates from the EDD Column of the patients on the "GDM Database sheet" to automatically copy over onto the "36 week List" that is on the same workbook and to continue to copy their name and edd's to the "36 week List" when i add new patients. But i would also like excel to work out the date that each patient will be 36 weeks and also do this automatically every time i add a patient on the "GDM Database Sheet"
Hope this Makes sense.
Thank You
Kerry
GDM Database Example.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAAB
1Date Of ReferralDate First SeenNameDate of BirthHosp NumberEDD1st Hba1c1st Fasting Blood GlucoseGestation2nd Hba1c2nd Fasting Blood GlucoseGestation3rd Hba1c3rd Fasting Blood GlucoseGestationALT/ASTIs the result abnormal by nice guidelinesPrevious GDM Having TestBMIInsulin StartMetformin startDate DeliveredGestSVD/LSCS/FORCEPSWeightGenderIOLNICU
2January
302/01/2020Annabel Smith28/10/2000D15982414/04/2020405.824+2YesNo32.207/04/202039+0SVD3.995kgMaleYesNo
402/01/2020Snow White19/05/1992D12345625/08/2020Previous GDM wishes to assumeN/ANo28.420/06/202004/08/202037+0LSCS3.552kgFemaleNoYes
504/01/2020Janice Baker30/06/1996D14785225/04/2020446.524+5435.336+2YesYes35.427/03/202006/04/202037+2forceps4.511kgFemaleYesNo
604/01/2020Julie smith16/10/1989D12345615/04/2020395.224+1NoNo30.5
704/01/2020Jasmine Price25/09/1999D65432116/04/2020486.724+4ALT 18 / AST 15YesNo25.2
806/01/2020Kerry Conolly14/04/1986D78932123/07/2020Previous GDM wishes to assumeN/ANo29.8
GDM Database

GDM Database Example.xlsx
ABC
1NameEDD36 Weeks
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
36 Week List



I don't think I copied the first one in right, this one should be better

Kerry
 
Upvote 0
write at A2 (in 36 Week List):
='GDM database'!C3
write at B2 :
='GDM database'!F3
or if you want to write name at another order at column A, Use:
=VLOOKUP(A2,'GDM database'!$C$3:$F$999,4,FALSE)
you should change 999 with your last row number have data.
write at C2 ( and change column format to date):
=B2+252

and finally drag all 3 column to last cell
 
Upvote 0
Solution
Thank You, it worked only thing i had to change was the calculation in c2 as the 36 week date wasn't right. I changed it to =b2-28 and it comes up with the right date.
Thank you again
Kerry
 
Upvote 0

Forum statistics

Threads
1,214,839
Messages
6,121,892
Members
449,058
Latest member
Guy Boot

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